HOWTO vixie-cron notes: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
On a hardened gentoo machine, the main /var/log/messages file becomes hugely cluttered with the minute-by-minute cron messages. They are far too verbose :-( Cut down on the clutter by editing and adding the red/bold change: | On a '''hardened''' gentoo machine, the main /var/log/messages file becomes hugely cluttered with the minute-by-minute cron messages. They are far too verbose :-( Cut down on the clutter by editing and adding the red/bold change: | ||
<font color=red>hostname</font> <font color=blue>~ #</font> '''emacs -nw /etc/syslog-ng/syslog-ng.conf''' | <font color=red>hostname</font> <font color=blue>~ #</font> '''emacs -nw /etc/syslog-ng/syslog-ng.conf''' | ||
Line 7: | Line 7: | ||
Minute-by-minute cron messages are still logged, but only to /var/log/cron.log, '''not''' the main /var/log/messages file. Sanity is restored :-) | Minute-by-minute cron messages are still logged, but only to /var/log/cron.log, '''not''' the main /var/log/messages file. Sanity is restored :-) | ||
<hr> | |||
For Reference, here are a number of example syslog-ng.conf files: | |||
[[Typical hardened syslog-ng.conf]] | |||
[[Typical server syslog-ng.conf]] | |||
[[Typical workstation syslog-ng.conf]] | |||
<br> |
Revision as of 19:06, 8 February 2008
On a hardened gentoo machine, the main /var/log/messages file becomes hugely cluttered with the minute-by-minute cron messages. They are far too verbose :-( Cut down on the clutter by editing and adding the red/bold change:
hostname ~ # emacs -nw /etc/syslog-ng/syslog-ng.conf filter f_messages { level(info..warn) and not facility(auth, authpriv, mail, news, cron); };
Minute-by-minute cron messages are still logged, but only to /var/log/cron.log, not the main /var/log/messages file. Sanity is restored :-)
For Reference, here are a number of example syslog-ng.conf files:
Typical hardened syslog-ng.conf
Typical server syslog-ng.conf
Typical workstation syslog-ng.conf