Page 1 of 1

Edit IP Address (Hostname)

Posted: Sun Sep 30, 2018 2:35 am
by shiraz1982
Hi,

I added around 30 host in log server. but network switches/firwall are not displaying any host name just IP. How can i edit it manually in log server GUI.

Re: Edit IP Address (Hostname)

Posted: Tue Oct 02, 2018 12:39 pm
by cdienger
Are the hostnames part of the log messages that are being sent? If so, then a grok filter can be used to parse it out. See "Logstash Example Configuration" in https://support.nagios.com/kb/article/n ... ew-98.html for details on using the grok filter.

If the hostname is not part of the message, you can use the dns() filter to do a lookup to get it. Be careful with this - if DNS isn't set up properly it easily can become a bottleneck.