如何阻止systemd在CentOS 7中发送垃圾邮件rsyslog

时间:2016-08-23 16:56:23

标签: syslog rsyslog

我已按照此Redhat Bugfix article中的说明操作,即我执行了以下操作(我意识到这是Redhat修复)

  • 创建/etc/systemd/system/systemd-logind.service文件
  • 将以下行放在文件

    .include /lib/systemd/system/systemd-logind.service [服务] 环境= SYSTEMD_LOG_LEVEL =警告

  • 重新启动了rsyslog和systemd-logind服务

然而,我仍然看到systemd记录垃圾邮件/ var / log / messages。还有我需要在CentOS盒子里做的其他事吗?这是一个样本

<30>1 2016-08-23T13:09:48-04:00 susralcent09 systemd - - -  Starting Flush Journal to Persistent Storage...
<30>1 2016-08-23T12:48:37-04:00 susralcent09 systemd - - -  Started System Logging Service.
<30>1 2016-08-23T12:48:36-04:00 susralcent09 systemd - - -  Stopping System Logging Service...
<30>1 2016-08-23T12:48:36-04:00 susralcent09 systemd - - -  Starting System Logging Service...

...和

<30>1 2016-08-23T13:01:01-04:00 susralcent09 systemd - - -  Created slice user-0.slice.
<30>1 2016-08-23T13:01:01-04:00 susralcent09 systemd - - -  Started Session 2 of user root.
<30>1 2016-08-23T13:09:48-04:00 susralcent09 systemd - - -  Started Flush Journal to Persistent Storage.
<30>1 2016-08-23T13:01:01-04:00 susralcent09 systemd - - -  Starting Session 2 of user root.
<30>1 2016-08-23T13:01:01-04:00 susralcent09 systemd - - -  Starting user-0.slice.

0 个答案:

没有答案