N
N
NaN2015-01-14 02:51:31
ubuntu
NaN, 2015-01-14 02:51:31

How to disable logging of root cron jobs to /var/log/syslog (or anywhere else) in ubuntu 14.04 lts 64 minimal?

Tried almost everything that googled.
Changing the config /etc/rsyslog.d/* and /etc/init.d/rsyslog force-reload did not help.
Changes in cron -L logging level from 1 to 4 too.
It was possible to remove duplication from the auth log, and send mail to the root. It writes to syslog, even if you crack (.
Forcibly intercepting the process with redirection to / dev / null, as some advised, I don’t want to do it at all.
Well, 14.04 again, of course, pleased me with the transfer of all configs, what you will find in memory.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
NaN, 2015-01-17
@NaN

solution:
*.*;auth,authpriv.none - /var/log/syslog
*.*;auth,authpriv.none; cron.none -/var/log/syslog
service rsyslog restart

B
Boris Benkovsky, 2015-01-14
@benbor

Well, let him log. Never steamed. Set up the rotation so that the place does not eat up, and that's it
. If anything, syslog writes to files asynchronously, so it almost does not affect performance

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question