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