-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello list, This morning I found that my syslog is not running as it is expected. In my logrotate.d/syslog everything is very basic /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall { compress dateext maxage 365 rotate 99 missingok notifempty size +10240k create 640 root root sharedscripts postrotate /etc/init.d/syslog reload endscript } Usually it generate compress files everyday, but since yesterday it stop. I restart syslog but nothing happens. Can someone here have experience in this matter. Any help will very much appreciate. TIA Edwin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) iD8DBQFChBCUkaMcq796kjoRAmP5AJ9xJ4/r/fH7OZWwLQnb8BspdX7tKwCgghl2 GWYfbFXgN2inAUU8B3bUNeg= =gFuo -----END PGP SIGNATURE-----
M. Edwin wrote:
This morning I found that my syslog is not running as it is expected. In my logrotate.d/syslog everything is very basic
/var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall { compress dateext maxage 365 rotate 99 missingok notifempty size +10240k create 640 root root sharedscripts postrotate /etc/init.d/syslog reload endscript }
In my opinion this is not a syslog problem, but has something to do with cron and logrotate. There are few things you should check: 1. In a default Suse installation logrotate is called from cron as a daily job. Look for file "logrotate" in directory /etc/cron.daily. 2. Is your cron daemon up and running? Try "ps ax | grep cron" or "rccron status". 3. Your logrotate.d/syslog file says "don't rotate logs unless they are bigger than 10Mb" - how large are your files? 4. Try running logrotate from the commandline and see what happens. robert
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robert Manfreda wrote:
In my opinion this is not a syslog problem, but has something to do with cron and logrotate. There are few things you should check: 1. In a default Suse installation logrotate is called from cron as a daily job. Look for file "logrotate" in directory /etc/cron.daily. 2. Is your cron daemon up and running? Try "ps ax | grep cron" or "rccron status". 3. Your logrotate.d/syslog file says "don't rotate logs unless they are bigger than 10Mb" - how large are your files? 4. Try running logrotate from the commandline and see what happens.
robert
Thanks Robert. I thought this is a syslog problem because other cron job is running well, and I was wrong. Yes this is a logrotate problem. I found the cause. There is a file: /etc/logrotate.d/apache2.orig, maybe I copy the original somewhile ago. And it cause a problem. I just rename it and everything works fine. edwin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) iD8DBQFCiAHXkaMcq796kjoRAjRxAKDWJI/2p1nNwQsK9xdFPDJRfwTeuACdE0Bs L9eNyo7iNPhDbKz4mlt0mH4= =Oq2u -----END PGP SIGNATURE-----
participants (2)
-
M. Edwin
-
Robert Manfreda