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