在CENTOS7.6里面很多这个信息,解决办法:
方法1:通过脚本特殊处理
# 执行如下SHELL
echo 'if ($programname == "systemd-logind" or $programname == "systemd") and ($msg contains "Starting Session" or $msg contains "Started Session" or $msg contains "Removed session" or $msg contains "New session" or $msg contains "Created slice" or $msg contains "Starting user-") then stop' >/etc/rsyslog.d/ignore-systemd-session-slice.conf
# 重启rsyslog 服务
systemctl restart rsyslog
方法2: 修改配置文件
将/etc/systemd/system.conf 中 LogLevel=info 设置成如下:
#LogLevel=infoLogLevel=notice
方法3:系统命令
systemd-analyze set-log-level notice
|