logrotate: Rotate wtmp files monthly, and keep them for a year
Commit Message
This prevents "last" being rendered unusable, and allows
for better and faster auditing of previous logins.
Fixes: #13322
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
config/etc/logrotate.conf | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -15,9 +15,9 @@ include /etc/logrotate.d
# wtmp
/var/log/wtmp {
- weekly
+ monthly
create 0664 root utmp
- rotate 1
+ rotate 12
}
/var/log/httpd/access_log /var/log/httpd/error_log /var/log/httpd/ssl_request_log /var/log/httpd/ssl_engine_log {