From 3401f6aefd0dcc2f74607dc08976f94bfffa1130 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Tue, 23 May 2017 01:19:30 +0000 Subject: [PATCH] Cron jobs log to /var/log/cron.log once again; Shrink max size of less-important logs to 50MB and rotate daily --- files/image_config/logrotate.d/rsyslog | 4 ++-- files/image_config/rsyslog/rsyslog.d/99-default.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/image_config/logrotate.d/rsyslog b/files/image_config/logrotate.d/rsyslog index 0d03e906c9b8..d24bc32abe17 100644 --- a/files/image_config/logrotate.d/rsyslog +++ b/files/image_config/logrotate.d/rsyslog @@ -31,8 +31,8 @@ /var/log/messages { rotate 4 - weekly - maxsize 100M + daily + maxsize 50M missingok notifempty compress diff --git a/files/image_config/rsyslog/rsyslog.d/99-default.conf b/files/image_config/rsyslog/rsyslog.d/99-default.conf index 9b129199b385..cfb1e1d3b881 100644 --- a/files/image_config/rsyslog/rsyslog.d/99-default.conf +++ b/files/image_config/rsyslog/rsyslog.d/99-default.conf @@ -3,9 +3,9 @@ # auth,authpriv.* /var/log/auth.log *.*;auth,authpriv.none -/var/log/syslog -# Do not redirect cron, daemon, kernel or lpr logs to +cron.* /var/log/cron.log +# Do not redirect daemon, kernel or lpr logs to # their own files. Let them log to /var/log/syslog -#cron.* /var/log/cron.log #daemon.* -/var/log/daemon.log #kern.* -/var/log/kern.log #kern.* -/var/persist/log/kern.log