rsyslog にしてみたけどもエラーが出てた。
Dec 28 22:44:12 lachesis rsyslogd: [origin software="rsyslogd" swVersion="3.22.1" x-pid="8366" x-info="http://www.rsyslog.com"] (re)start Dec 28 22:44:12 lachesis 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. Dec 28 22:44:12 lachesis rsyslogd: Warning: backward compatibility layer added to following directive to rsyslog.conf: ModLoad imuxsock
-c3 オプションを付けろというので付けてみる。
cp -a /etc/sysconfig/rsyslog /etc/sysconfig/rsyslog.orig sed -i 's/SYSLOGD_OPTIONS="-m 0"/SYSLOGD_OPTIONS="-c3"/' /etc/sysconfig/rsyslog /sbin/service rsyslog restart
エラーが出なくなった。
Dec 28 22:52:33 lachesis rsyslogd: [origin software="rsyslogd" swVersion="3.22.1" x-pid="8433" x-info="http://www.rsyslog.com"] (re)start