Page 1 of 1

Have DNS names instead of IPs in dashboard

Posted: Mon Oct 10, 2016 7:25 am
by ogghi
Hi There,

first thanks for the nice solution I'm evaluating right now.

Is there a way to show DNS names instead of the IPs in the dashboard?

DNS is working properly on the machine.

Best regards
David

Re: Have DNS names instead of IPs in dashboard

Posted: Mon Oct 10, 2016 2:00 pm
by dwhitfield
You will be interested in the DNS filter: http://logstash.net/docs/1.4.2/filters/dns

When you enable the above filter and logs come in, Nagios Log Server will attempt to resolve the IPs to names via reverse DNS lookup. NLS can then re-write specified fields with FQDN instead of an IP.

You will likely want to define a filter similar to the following:

Code: Select all

dns {
reverse => [ "host" ]
action => [ "replace" ]
add_tag => [ "dns" ]
}

Re: Have DNS names instead of IPs in dashboard

Posted: Tue Oct 11, 2016 2:08 am
by ogghi
Thanks for the hint.
I also just figured out there's a field called Hostname ;)

Re: Have DNS names instead of IPs in dashboard

Posted: Tue Oct 11, 2016 9:34 am
by dwhitfield
Awesome! It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!

Re: Have DNS names instead of IPs in dashboard

Posted: Tue Oct 11, 2016 9:41 am
by ogghi
Of course! Please close/lock it :)
Thank you for the promt help!

Re: Have DNS names instead of IPs in dashboard

Posted: Tue Oct 11, 2016 9:50 am
by dwhitfield
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!