方法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=info
LogLevel=notice

 

方法3:系统命令

systemd-analyze set-log-level notice

 

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案