我在 Ubuntu 服务器上运行 rsyslog。
rsyslog 启动后,会循环重新启动。以下是 /var/log/syslog 的一部分:
Aug 13 16:05:50 ip-10-92-237-215 rsyslogd: rsyslogd's groupid changed to 103
Aug 13 16:05:50 ip-10-92-237-215 rsyslogd: rsyslogd's userid changed to 101
Aug 13 16:05:51 ip-10-92-237-215 kernel: imklog 5.8.11, log source = /proc/kmsg started.
Aug 13 16:05:51 ip-10-92-237-215 rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="31895" x-info="http://www.rsyslog.com"] start
Aug 13 16:05:51 ip-10-92-237-215 rsyslogd: rsyslogd's groupid changed to 103
Aug 13 16:05:51 ip-10-92-237-215 rsyslogd: rsyslogd's userid changed to 101
Aug 13 16:05:52 ip-10-92-237-215 kernel: imklog 5.8.11, log source = /proc/kmsg started.
Aug 13 16:05:52 ip-10-92-237-215 rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="31907" x-info="http://www.rsyslog.com"] start
Aug 13 16:05:52 ip-10-92-237-215 rsyslogd: rsyslogd's groupid changed to 103
Aug 13 16:05:52 ip-10-92-237-215 rsyslogd: rsyslogd's userid changed to 101
Aug 13 16:05:53 ip-10-92-237-215 kernel: imklog 5.8.11, log source = /proc/kmsg started.
Aug 13 16:05:53 ip-10-92-237-215 rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="31919" x-info="http://www.rsyslog.com"] start
Aug 13 16:05:53 ip-10-92-237-215 rsyslogd: rsyslogd's groupid changed to 103
Aug 13 16:05:53 ip-10-92-237-215 rsyslogd: rsyslogd's userid changed to 101
可能是什么问题呢?
答案1
这可能是配置问题。尝试以配置检查模式启动 rsyslog:
/path/to/rsyslogd -f/path/to/config-file -N1