Skip to content

Commit

Permalink
Chrony logs rotate too quickly (#3857)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
citrus-it authored Aug 10, 2023
1 parent 6316f02 commit b9f58d0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions smf/ntp/etc/logadm.d/chrony.logadm.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# Rotate chrony logs daily and keep at most 8 old files.
# This is daily by virtue of the `logadm` entry in root's crontab only running
# once a day; the thresholds specified here are >= 1 byte, and now.
chrony_logs /var/log/chrony/*.log -C 8 -z 3 -p now -s 1b -c -t '$file.$secs'
# Rotate chrony logs at 10MiB and keep 10 compressed old logs.
chrony_logs /var/log/chrony/*.log -C 10 -z 0 -s 10m -c -t '$file.$secs'

0 comments on commit b9f58d0

Please sign in to comment.