cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
816
Views
0
Helpful
1
Replies

Freebsd syslog messaging

nilsahu
Level 1
Level 1

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

1 Reply 1

lgijssel
Level 9
Level 9

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: