How to log ip addresses of remote hosts in /var/log/local* files in place of hostnames on a freebsd syslog server?
Right now, the log messages look as below:
“May 31 20:06:22 <local6.info> nxos-z11-2 : 2012 May 31 07:24:21.904 UTC….”
While, I want it to be as below:
“May 31 20:06:22 <local6.info> 10.64.69.122 : 2012 May 31 07:24:21.904 UTC….”
The syslog server is able to ping remote host using hostname as below:
nxos-ssr-pc5# ping nxos-z11-2
PING nxos-z11-2.cisco.com (10.64.69.122): 56 data bytes
64 bytes from 10.64.69.122: icmp_seq=0 ttl=255 time=0.549 ms
64 bytes from 10.64.69.122: icmp_seq=1 ttl=255 time=0.592 ms
Thanks,
Nilesh