I have a problem with logrotate not rotating the syslog files (message, mail, ...) It is rotating other files such as the Apache logs ok so I know it's being run. If I do logrotate -d it is actually checking the logs but not rotating them despite the files running back several months: rotating pattern: /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall 4194304 bytes (99 rotations) empty log files are not rotated, old logs are removed considering log /var/log/warn log does not need rotating considering log /var/log/messages log does not need rotating considering log /var/log/allmessages log /var/log/allmessages does not exist -- skipping considering log /var/log/localmessages log does not need rotating considering log /var/log/firewall log does not need rotating not running shared postrotate script, since no logs were rotated Can anyone suggest a reason why? thanks
On Mon, 2006-01-30 at 12:29 +0000, Kevin Thorpe wrote:
I have a problem with logrotate not rotating the syslog files (message, mail, ...) It is rotating other files such as the Apache logs ok so I know it's being run. If I do logrotate -d it is actually checking the logs but not rotating them despite the files running back several months:
rotating pattern: /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall 4194304 bytes (99 rotations) empty log files are not rotated, old logs are removed considering log /var/log/warn log does not need rotating considering log /var/log/messages log does not need rotating considering log /var/log/allmessages log /var/log/allmessages does not exist -- skipping considering log /var/log/localmessages log does not need rotating considering log /var/log/firewall log does not need rotating not running shared postrotate script, since no logs were rotated
Can anyone suggest a reason why?
Take a look at the size of the files, in this case logrotate will not rotate the files until they are over 4194304 bytes in size. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
Ken Schneider wrote:
On Mon, 2006-01-30 at 12:29 +0000, Kevin Thorpe wrote:
I have a problem with logrotate not rotating the syslog files Can anyone suggest a reason why?
Take a look at the size of the files, in this case logrotate will not rotate the files until they are over 4194304 bytes in size.
Oh. That would be the reason. Logrotate didn't use to do that. Can I please have my VAX back? I used to understand that.
On Monday 30 January 2006 9:54 am, Kevin Thorpe wrote:
Ken Schneider wrote:
On Mon, 2006-01-30 at 12:29 +0000, Kevin Thorpe wrote:
I have a problem with logrotate not rotating the syslog files Can anyone suggest a reason why?
Take a look at the size of the files, in this case logrotate will not rotate the files until they are over 4194304 bytes in size.
Oh. That would be the reason. Logrotate didn't use to do that. Can I please have my VAX back? I used to understand that. Sorry, we don't make no VAXEN no more :-) But, we still make Open VMS :-)
Log rotation is controlled by the file /etc/logrotate.conf and individual log rotate scripts in /etc/logrotate.d. (such as the one for syslog). You can change the parameters if you wish. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
participants (3)
-
Jerry Feldman
-
Ken Schneider
-
Kevin Thorpe