I've installed rsyslog and replaced syslog-ng.
/var/log/messages shows me lines like:
- Code: Select all
2008-10-07T12:42:09.450917+02:00 localhost xinetd[4220]: START: nrpe pid=25507 from=192.168.10.18
This is okay. But I am using centralized rsyslog logging and phpLogCon. The problem is that "Host" is always "localhost".
Instead I'd like to see the hostname. How can I do that?
I tried it with the property replacement rule: %hostname:localhost:$myhostname:lowercase%
But this just outputs the error log:
- Code: Select all
2008-10-07T12:15:50.032657+02:00 localhost rsyslogd: [origin software="rsyslogd" swVersion="3.18.4" x-pid="25224" x-info="http://www.rsyslog.com"] restart
2008-10-07T12:15:50.032927+02:00 localhost rsyslogd: unknown priority name ""
2008-10-07T12:15:50.033402+02:00 localhost rsyslogd: the last error occured in /etc/rsyslog.conf, line 6
2008-10-07T12:15:50.033668+02:00 localhost rsyslogd: warning: selector line without actions will be discarded
Thank you


