Skip to content

Commit b9f58d0

Browse files
authored
Chrony logs rotate too quickly (#3857)
After #3745, chrony logs are rotating every 15 minutes instead of daily. This changes the strategy to rotate every 10 MiB and keep the last 10 files compressed with gzip. These logs don't grow quickly once time is stable.
1 parent 6316f02 commit b9f58d0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
# Rotate chrony logs daily and keep at most 8 old files.
2-
# This is daily by virtue of the `logadm` entry in root's crontab only running
3-
# once a day; the thresholds specified here are >= 1 byte, and now.
4-
chrony_logs /var/log/chrony/*.log -C 8 -z 3 -p now -s 1b -c -t '$file.$secs'
1+
# Rotate chrony logs at 10MiB and keep 10 compressed old logs.
2+
chrony_logs /var/log/chrony/*.log -C 10 -z 0 -s 10m -c -t '$file.$secs'

0 commit comments

Comments
 (0)