Our log file /var/log/syslog does not seem to be rotating, even though the logrotate config /etc/logrotate.d/rsyslog exists:
/var/log/syslog
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
postrotate
reload rsyslog >/dev/null 2>&1 || true
endscript
}
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
rotate 4
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
reload rsyslog >/dev/null 2>&1 || true
endscript
}
See, the syslog log file is 600M with no old files or compressed.
-rw-r----- 1 syslog adm 600M Nov 9 20:30 syslog
/var/log. Anywhere to log for issues? – Justin Nov 09 '15 at 20:50logrotateyourself?sudo logrotate -d /etc/logrotate.conf- the-denables debug mode. – muru Nov 09 '15 at 20:52ubuntuI seeerror: skipping "/var/log/syslog" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.. The permissions on/var/logare775. – Justin Nov 09 '15 at 20:56logrotatedid nothing, because there was already no space left on the device :) – shitpoet Jun 16 '24 at 10:08