Logrotate strange problem
Hi.
I'm using logrotate on a cent os 4.3 box, but for some reason this box out off all the others has a logrotate problem. When my logs rotate each week, messages becomes messages.1 for example but the system continues to weite to messages.1 ans therefore message is empty.Its doing this for all the standard logs, log rotate makes, there no changes to it, its just as it out of the box. Has any one come across this before? Thanks in advance. Keith. |
It sounds like the syslogd isn't being restarted when the logs are rotated. Is your logrotate setup so that there is an /etc/logrotate.d/syslog file? If so, does it restart syslogd? For example:
Code:
/var/log/cron /var/log/debug /var/log/maillog /var/log/messages /var/log/secure /var/log/spooler /var/log/syslog { |
I had this happen to me a while back (like last year). It went away after an upgrade. In my case, I think it was just a bug in logrotate.
|
Hi,
Thanks for all the feedback, I removed and re-installed both logrotate and syslog, which seams to have cured the problem, Sunday night the logs have all rotated correctly. Thanks again for the help. Keith. |
All times are GMT -5. The time now is 01:47 AM. |