From 1806d74c85a80a3d4494a55e3263f544cd91ac7e Mon Sep 17 00:00:00 2001 From: Suvro Ghosh Date: Tue, 23 Jun 2020 17:12:37 -0400 Subject: [PATCH] Updated logrotate config for daemon.log Increased the file size to 70M which is seven times the previous(10M). The LP description mentioned that with the current settings "file size 10M" the logs got rotated every 2 days but the desired behavior was to rotate every 2 weeks (14 days). Therefore, 2 days = 10M 14 days (2 * 7 times) = 70M (10 * 7) Partial-bug: 1882087 Change-Id: Ib30ecbc297356225b902598d341fb7ab44c3a8c2 Signed-off-by: Suvro Ghosh --- syslog-ng-config/files/syslog-ng.logrotate | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/syslog-ng-config/files/syslog-ng.logrotate b/syslog-ng-config/files/syslog-ng.logrotate index 00cd862..6f81bf6 100644 --- a/syslog-ng-config/files/syslog-ng.logrotate +++ b/syslog-ng-config/files/syslog-ng.logrotate @@ -3,7 +3,6 @@ /var/log/syslog /var/log/auth.log /var/log/cron.log -/var/log/daemon.log /var/log/daemon-ocf.log /var/log/kern.log /var/log/lpr.log @@ -122,3 +121,18 @@ /usr/bin/logmgmt_postrotate > /dev/null 2>&1 || true endscript } + +/var/log/daemon.log +{ + nodateext + size 70M + start 1 + rotate 20 + missingok + notifempty + compress + sharedscripts + postrotate + systemctl reload syslog-ng > /dev/null 2>&1 || true + endscript +}