public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] logrotate: Rotate wtmp files monthly, and keep them for a year
@ 2023-09-14 17:15 Peter Müller
  0 siblings, 0 replies; only message in thread
From: Peter Müller @ 2023-09-14 17:15 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 747 bytes --]

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(a)ipfire.org>
---
 config/etc/logrotate.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/etc/logrotate.conf b/config/etc/logrotate.conf
index 0b6b48573..c5f9883c7 100644
--- a/config/etc/logrotate.conf
+++ b/config/etc/logrotate.conf
@@ -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 {
-- 
2.39.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-14 17:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-14 17:15 [PATCH] logrotate: Rotate wtmp files monthly, and keep them for a year Peter Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox