Answers:
您需要找到定义应发送到/ var / log / syslog的内容的行,并对其进行修改,以便不包含cron消息。例如,在Ubuntu系统上,我必须将/etc/rsyslog.d/50-default.conf
文件输入syslog的以下条目:
*.*;auth,authpriv.none -/var/log/syslog
更改为:
*.*;cron,auth,authpriv.none -/var/log/syslog
做你想要的。请注意,上面利用了指定多个优先级与列表相同的功能的能力,如果您还没有.none
优先级,则必须这样做,例如:
*.*;auth,authpriv.info;cron.none -/var/log/syslog