Skip to content

Commit 714e45f

Browse files
authored
Cron jobs log to /var/log/cron.log once again (#620)
- Now that logrotate is a cron job that runs every minute, it was polluting syslog - Also shrink max size of less-important logs to 50MB and rotate them daily by default
1 parent ef98015 commit 714e45f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

files/image_config/logrotate.d/rsyslog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
/var/log/messages
3232
{
3333
rotate 4
34-
weekly
35-
maxsize 100M
34+
daily
35+
maxsize 50M
3636
missingok
3737
notifempty
3838
compress

files/image_config/rsyslog/rsyslog.d/99-default.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
#
44
auth,authpriv.* /var/log/auth.log
55
*.*;auth,authpriv.none -/var/log/syslog
6-
# Do not redirect cron, daemon, kernel or lpr logs to
6+
cron.* /var/log/cron.log
7+
# Do not redirect daemon, kernel or lpr logs to
78
# their own files. Let them log to /var/log/syslog
8-
#cron.* /var/log/cron.log
99
#daemon.* -/var/log/daemon.log
1010
#kern.* -/var/log/kern.log
1111
#kern.* -/var/persist/log/kern.log

0 commit comments

Comments
 (0)