From b8769ed95b800c5cde8b1c61bbfff935e6cef6c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Thu, 14 Sep 2023 17:15:01 +0000 Subject: [PATCH] logrotate: Rotate wtmp files monthly, and keep them for a year MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This prevents "last" being rendered unusable, and allows for better and faster auditing of previous logins. Fixes: #13322 Signed-off-by: Peter Müller Signed-off-by: Michael Tremer --- 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 0b6b485737..c5f9883c7f 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.5