新規にインストールしたシステムで、常に /var/log/messages に以下のメッセージが記録されます。
Jul 24 08:50:01 example.com systemd:Created slice user-0.slice. Jul 24 08:50:01 example.com systemd:Starting Session 150 of user root. Jul 24 08:50:01 example.com systemd:Started Session 150 of user root. Jul 24 9:00:01 example.com systemd:Created slice user-0.slice. Jul 24 9:00:02 example.com systemd:Starting Session 151 of user root. Jul 24 9:00:02 example.com systemd:Started Session 151 of user root. |
[root@localhost ~]# vi /etc/rsyslog.d/ignore-systemd-session-slice.conf |
if $programname == "systemd" and ($msg contains "Starting Session" or $msg contains "Started Session" or $msg contains "Created slice" or $msg contains "Starting user-" or $msg contains "Starting User Slice of" or $msg contains "Removed session" or $msg contains "Removed slice User Slice of" or $msg contains "Stopping User Slice of") then stop |
[root@localhost ~]# systemctl restart rsyslog |