How to configure rsyslog to run in native mode in RHEL5
Environment
- Red Hat Enterprise Linux 5
Issue
-
rsyslogd can be run in compatibility mode and native mode. The default is compatibility mode, and you may see the following warning messages in /var/log/messages
2010-07-15T17:25:31.146793+08: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 -c3 as the first rsyslogd option. 2010-07-15T17:25:31.150451+08:00 localhost rsyslogd: Warning: backward compatibility layer added to following directive to rsyslog.conf: ModLoad imudp 2010-07-15T17:25:31.151019+08:00 localhost rsyslogd: Warning: backward compatibility layer added to following directive to rsyslog.conf: UDPServerRun (null) 2010-07-15T17:25:31.151082+08:00 localhost rsyslogd: Name or service not known
Resolution
1. Modify /etc/sysconfig/rsyslog
SYSLOGD_OPTIONS="-c3"
2. Modify /etc/rsyslog.conf, add the following lines in top of the file
$ModLoad imudp
$UDPServerRun 514
$ModLoad imuxsock
3. Restart rsyslog service
# service rsyslog restart
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments