rsyslogd: WARNING: rsyslogd is running in compatibility mode. Automatically generated config directives may interfer with your rsyslog.conf settings. We suggest upgrading your config and adding -c3 as the first rsyslogd option.




解决办法


1、

vi /etc/sysconfig/rsyslog

rsyslogd: WARNING: rsyslogd is running in compatibility mode._rsyslogd: WARNING: r

把原来的"m 0"改为"-c3"


2、

vi /etc/rsyslog.conf

在后面添加下面两行

$ModLoad imuxsock.so    # provides support for local system logging (e.g. via logger command)

$ModLoad imklog.so      # provides kernel logging support (previously done by rklogd)


3、重启rsyslog


参考资料:https://stomp.colorado.edu/blog/blog/2010/05/20/on-rsyslog-and-warnings/