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:
parent
938f048b90
commit
b8769ed95b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue