On Thu, 25 Apr 2013, Josh Bitto wrote:
I was doing some daily routine stuff and noticed that when my log files rotated
the new files were created, but nothing was being written to them. I did some
googling and to my knowledge I have the scripting right in the
/etc/logrotate.d/syslog file correct.
/list of rotated files
{
weekly
notifempty
missingok
create
delaycompress
compress
sharedscripts
rotate 24
/reload rsyslog >/dev/null 2>&1 || true
endscript
}
Am I missing something? When I manually restart rsyslog the new files already
there have stuff written and it goes back to normal....
Try doing a kill -HUP of rsyslog after a rotate has taken place and see if that
makes the new files start showing data.
If so, then the logrotate is not properly issuing the restart.
you may want to eliminate the redirects in your config and see if it given you
any errors when it restarts.
David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.