Sample Header Ad - 728x90

Skip syslog/rsyslog logging of certain cron jobs

2 votes
2 answers
2425 views
In most GNU/Linux distributions the default is to log start (and many different events) of every cron job to syslog. It's rather convenient, but not for a very frequent jobs, which started, say, every 1 minute. I know how to redirect all cron jobs events to a different log via /etc/rsyslog.conf (*.*;cron,auth,authpriv.none -/var/log/syslog) and it's easy to heavily restrict the logging to, say, just error events via /etc/default/cron (EXTRA_OPTS="-L 4"). But this affect all of cron jobs. What if I want to restrict the logging of *certain* cron jobs (said frequent every-1-minute jobs)? Is it possible to set this up via /etc/rsyslog.conf or in /etc/crontab itself? The system is Debian 8.0 Jessie.
Asked by Neurotransmitter (3071 rep)
May 14, 2015, 09:35 PM
Last activity: Jul 31, 2025, 03:08 PM