Displaying 20 results from an estimated 9000 matches similar to: "specify size in kilobytes with logrotate"
2018 Nov 11
0
CentOS 6: Logrotate / selinux problem
Ever since a recent power failure I have been getting a Logrotate error. My
machine is on a UPS -- it shutdown cleanly, but I suspect that its BIOS/RTC
battery is dead, since the machine came up thinking it was 1982 :-(. I reset
the clock and everything is fine, *except* I had to delete Logrotate's state
files (which had bad dates). But now Logrotate is raising the error:
error: error
2008 Jul 08
0
Problem with logrotate and compress
Hi I am using Centos 5.1 and I have a weird problem with squid logs
rotation. I have the file squid as follow in /etc/logrotate.d:
Recently I reduce size parameter.
/var/log/squid/access.log {
weekly
missingok
rotate 10
compress
create 0660 squid squid
missingok
size 200M
postrotate
/usr/sbin/squid -k rotate
endscript
}
/var/log/squid/cache.log {
weekly
2014 Apr 09
3
Logrotate errors
Hi all,
I have a problem with logrotate and I don't know why. In
/var/log/messages appears these errors:
Apr 8 15:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
Apr 8 16:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
Apr 8 17:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
Apr 8 18:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1]
Apr 8
2015 Sep 24
2
Logrotate problems
Hi Y'all,
We have nginx set up and we are having problems with logrotate. The
permissions and users do not seem to be any different from other machines
that are working ok however the /var/log/nginx does have a directory in
there that we are using to collect some special log stuff.
Could this subdirectory be interfering with the logrotate process?
ta
Andrew
[root@ ~]# logrotate -d
2005 Dec 19
1
logrotate. Bug or am I blind?
Hello!
I having a problem with the permissions of some of my logfiles.
It seems that when the files are rotated, the user/group is root root and the permissions are rw for root only.
more info hereunder:
The strange thing is that sometimes it works for one file...
/var/log/cisco_acl.log /var/log/cisco_debug.log {
rotate 1
notifempty
#daily
size 1k
create 0640 root noc
2017 Mar 19
2
Permission denied when logrotating dovecot.log
Hello guys
Having headaches here how to make logrotation for dovecot log files
work. Having permission issues:
michael.heuberger at xxx /e/l/daily ??? sudo logrotate -fv
dovecot.daily
?
reading config file dovecot.daily
Handling 1 logs
rotating
Logrotate "firstaction" with non-0 exit status. Or: How to keep logrotate from rotating via scripts?
2012 Oct 03
0
Logrotate "firstaction" with non-0 exit status. Or: How to keep logrotate from rotating via scripts?
Hi,
I'm wondering if anyone here has any experience with the "firstaction"
script in logrotate config files, or more specifically, the behaviour
with a non-0 exit status. The logrotate manpage says:
firstaction/endscript
The lines between firstaction and endscript (both of which must
appear on lines by themselves) are executed (using /bin/sh) once
before all log
2008 Jul 31
2
Logrotate is not happing without -f option
Dear All,
Currently i am using CentOS 4.4 Linux
Logrotate is not happen without -f option
I have executed the following logrotate /etc/logrotate.conf manually and
Logrotate command exit without any error messages
If i executed with -f option then Logrotate will happen
I am not sure why this is happening. Can some one throw light on this.
Regards
-S.Balaji
2017 Mar 19
0
Permission denied when logrotating dovecot.log
> Date: Sunday, March 19, 2017 13:32:57 +1300
> From: Michael Heuberger <michael.heuberger at binarykitchen.com>
>
> Hello guys
>
> Having headaches here how to make logrotation for dovecot log files
> work. Having permission issues:
>
> michael.heuberger at xxx /e/l/daily ??? sudo logrotate -fv
> dovecot.daily
> ?
> reading config file dovecot.daily
2017 Mar 19
0
Permission denied when logrotating dovecot.log
> Date: Sunday, March 19, 2017 14:56:01 +1300
> From: Michael Heuberger <michael.heuberger at binarykitchen.com>
>
> On 19/03/17 13:43, Richard wrote:
>>
>>> Date: Sunday, March 19, 2017 13:32:57 +1300
>>> From: Michael Heuberger <michael.heuberger at binarykitchen.com>
>>>
>>> Hello guys
>>>
>>> Having
2017 Mar 19
4
Permission denied when logrotating dovecot.log
Thank you. And what user/group/file perms does your dovecot.log file have?
- Michael
On 19/03/17 13:43, Richard wrote:
>
>> Date: Sunday, March 19, 2017 13:32:57 +1300
>> From: Michael Heuberger <michael.heuberger at binarykitchen.com>
>>
>> Hello guys
>>
>> Having headaches here how to make logrotation for dovecot log files
>> work. Having
2017 Mar 19
0
Permission denied when logrotating dovecot.log
> Date: Sunday, March 19, 2017 15:28:35 +1300
> From: Michael Heuberger <michael.heuberger at binarykitchen.com>
>
> On 19/03/17 15:12, Richard wrote:
>>
>>> Date: Sunday, March 19, 2017 14:56:01 +1300
>>> From: Michael Heuberger <michael.heuberger at binarykitchen.com>
>>>
>>> On 19/03/17 13:43, Richard wrote:
2007 Mar 11
2
logrotate, syslog, and chsh
I'm noticing that logrotate's default configuration for rotating /var/
log/secure and /var/log/messages partially fails if root's shell is
set to /bin/tcsh (via chsh). (Running on CentOS 4.4;
logrotate-3.7.1-5.RHEL4).
What seems to be happening is that the logrotate.d/syslog postrotate
command runs:
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null
2017 Mar 19
2
Permission denied when logrotating dovecot.log
Well, I tried the same but it didn't work.
Setting my dovecot.log to 600 with root:root is breaking my mail system.
I am then unable to receive and open emails.
Had to apply an ugly hack
/var/log/dovecot*.log {
su syslog syslog
create 666 syslog syslog
rotate 10
...
}
Like that anyone who wants to access/write to it, can do it and all works.
That's my
2017 Mar 19
1
Permission denied when logrotating dovecot.log
Well, I'd rather to have dovecot log alone in one log file.
My initial question is that user/group and file permissions to use??
On 19/03/17 15:40, Richard wrote:
>
>> Date: Sunday, March 19, 2017 15:28:35 +1300
>> From: Michael Heuberger <michael.heuberger at binarykitchen.com>
>>
>> On 19/03/17 15:12, Richard wrote:
>>>> Date: Sunday, March 19,
2023 Dec 06
2
missing file in logrotate config
06.12.2023 10:01, Stefan G. Weichinger via samba:
> /var/log/samba/log.rpcd_* {
> log.rpcd_spoolss
> log.rpcd_spoolss.1
> log.rpcd_spoolss.1.1
> log.rpcd_spoolss.1.1.1
> log.rpcd_spoolss.1.1.1.1
This seems to be a limitation/defect of logrotate itself.
At first you had just log.rpcd_spoolss, and at first logrotate run
it rotated it to log.rpcd_spoolss.1, - now you have 2 files
2006 Sep 27
1
Slightly OT: Cron for Logrotate and Squid
Howdy list,
Hey does anyone know what the best cron job is to call logrotate to run
the squid logrotations? -Or the subscribe address for a squid or
logrotate mailing list (can't seem to find anything other than the usual
MARC archives).
I have this in /etc/logrotate.conf
# rotate log files daily, they get too big otherwise, another story.
daily
# keep 8 weeks worth of backlogs e.g. 60
2005 Oct 29
1
Bug#336265: logrotate detection, possible attack not checked by logcheck
Package: logcheck
Version: 1.2.41
Problem: Logcheck try to detect if log file have been rotate or not by file size way.
Possible attack:
- current log file (sizeA)
- run logcheck, (logcheck/logtail put inode in offsetfile), offset=sizeA
- [attacker run attack 1]
- run logrotate
- [attacker run attack 2]
- run logcheck may don't detect the rotation and don't check the log for attack 1
2023 Nov 27
2
missing file in logrotate config
Am 28.03.23 um 10:40 schrieb Rowland Penny via samba:
>
>
> On 28/03/2023 08:40, Arnaud FLORENT via samba wrote:
>> Hello
>>
>>
>> i am running samba 4.16 as AD-DC controller on Ubuntu 20.04 using
>> www.corpit.ru/mjt/packages/samba focal/samba-4.16 repository
>>
>>
>> everything is running fine but i have few log files in /var/log/samba/
2011 Jul 18
0
SQUID Logrotate
Hi all,
i have problem, after uprade CentOS 5.5 to 5.6, Logrotate don't work
on two proxy servers. I have installed :
squid-2.6.STABLE21-6.el5
logrotate-3.7.4-9.el5_5.2
On first server , squid logs never rotated, config is here
cat /etc/logrotate.d/squid
/var/log/squid/access.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
}
/var/log/squid/cache.log