I am running ddwrt v24-sp2 on three WRT54GL routers. These routers all send their syslog information to the same remote server using syslogd
The problem is that in the logs the hostname will change between the LAN IP and 127.0.0.1.
This makes it hard to tell which device is doing what when I have several events listed as localhost and makes it impossible to script events to happen when certain syslog messages are received.
Does anyone know of any way I can differentiate which message comes from which host? Is there some option I did not see to for a tag or extra information into the message. Can I force the host to send its hostname with each message?
Here is an example of the syslog output:
06-28-2010 11:43:57 User.Info 10.255.255.2 Jun 28 17:43:58 : >Connecting to
*.*.*.*
06-28-2010 11:43:54 User.Info 127.0.0.1 Jun 28 17:43:54 : >Connecting to
*.*.*.*
06-28-2010 11:43:52 Daemon.Info 10.255.255.1 Jun 28 17:43:53 >chillispot[428]: chilli.c: 1088: Rereading configuration file and doing DNS lookup
06-28-2010 11:43:51 Daemon.Info 127.0.0.1 Jun 28 17:43:52 >chillispot[623]: chilli.c: 1088: Rereading configuration file and doing DNS lookup
06-28-2010 11:43:51 Daemon.Info 10.255.255.3 Jun 28 17:43:51 >chillispot[4185]: chilli.c: 1088: Rereading configuration file and doing DNS lookup
thanks
Chris