rsyslog 报 WARNING: rsyslogd is running in compatibility mode.

[root@localhost log]# uname -a
Linux localhost.localdomain 2.6.32 #1 SMP Sun Sep 20 18:58:21 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost sbin]# /usr/local/sbin/rsyslogd -v
rsyslogd 5.8.13, compiled with:
FEATURE_REGEXP: Yes
FEATURE_LARGEFILE: No
GSSAPI Kerberos 5 support: No
FEATURE_DEBUG (debug build, slow code): No
32bit Atomic operations supported: Yes
64bit Atomic operations supported: Yes
Runtime Instrumentation (slow code): No

See http://www.rsyslog.com for more information.

error:

2016-06-12T23:04:01.435809-07:00 localhost 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 -c5 as the first rsyslogd option.

[root@localhost log]# vi /etc/sysconfig/rsyslog

# Options to syslogd
# -m 0 disables 'MARK' messages.
# -rPortNumber Enables logging from remote machines. The listener will listen to the specified port.
# -x disables DNS lookups on messages recieved with -r
# See syslogd(8) for more details
SYSLOGD_OPTIONS="-c 5"
# Options to klogd
# -2 prints all kernel oops messages twice; once for klogd to decode, and
# once for processing with 'ksymoops'
# -x disables all klogd processing of oops messages entirely
# See klogd(8) for more details
KLOGD_OPTIONS="-x"

原文地址:https://www.cnblogs.com/zengkefu/p/5580571.html