Ubuntu 14.04 - logrotate does not rotate /var/log/* (rsyslog config)
Same issue happened and resolved on Ubuntu 14.04 server with below change in /etc/logrotate.d/rsyslog
from:
/var/log/syslog
{
rotate 7
daily
...
postrotate
reload rsyslog >/dev/null 2>&1 || true
endscript
}
to this:
{
rotate 7
daily
...
postrotate
service rsyslog rotate >/dev/null 2>&1 || true
endscript
}
for each rotated rsyslog files. I triggered logrotate manually with "/usr/sbin/logrotate /etc/logrotate.conf" and tested it with logger.