Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Freebsd syslog messaging

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

Everyone's tags (3)
1 REPLY

Freebsd syslog messaging

This is a linux question!

Even though it is regarding syslog, you could perhaps get better answers elsewhere.

However, take a peek at this:

http://www.freebsd.org/cgi/man.cgi?query=syslogd&sektion=8&apropos=0&manpath=FreeBSD+9.0-RELEASE

This link describes the syslogd configuration options (in syslogd.conf).

My best guess is this one:

     -n      Disable dns query for every request.

Hope this helps, otherwise you may be able to fiddle it out using other information in this link.

You need to have sufficient authority on the machine to change the config and restart the syslogd.

This implies you need to have root access.

regards,

Leo

476
Views
0
Helpful
1
Replies
CreatePlease to create content