Skip to content

Commit

Permalink
logrotate: Never delete system log messages /var/log/messages
Browse files Browse the repository at this point in the history
Currently, they are deleted after twelve months, which is undesired, as
older logs are sometimes needed for comparison and debugging.

> If count is -1, old logs are not removed at all (use with caution, may
> waste performance and disk space).

We have enough space, so keep the logs.
  • Loading branch information
pmenzel committed Jan 13, 2021
1 parent dad1460 commit d7004f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logrotate/logrotate.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
dateext
dateformat .%Y-%m
dateyesterday
rotate 12
rotate -1
monthly
sharedscripts
postrotate
Expand Down

0 comments on commit d7004f4

Please sign in to comment.