logrotate: Rotate wtmp files monthly, and keep them for a year

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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Peter Müller 2023-09-14 17:15:01 +00:00 committed by Michael Tremer
parent 938f048b90
commit b8769ed95b
1 changed files with 2 additions and 2 deletions

View File

@ -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 {