]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
logrotate: Rotate wtmp files monthly, and keep them for a year
authorPeter Müller <peter.mueller@ipfire.org>
Thu, 14 Sep 2023 17:15:01 +0000 (17:15 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 15 Sep 2023 06:53:43 +0000 (06:53 +0000)
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>
config/etc/logrotate.conf

index 0b6b485737a653e658bd45f9c0a12026f3701e39..c5f9883c7f1e0f665e3f31a330d146b19652ca85 100644 (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 {