Need IP and DNS Name for hosts in dashboard

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
amuzaffar
Posts: 3
Joined: Thu Sep 08, 2016 10:28 am

Need IP and DNS Name for hosts in dashboard

Post by amuzaffar »

Hello Support,
I was able to change the IP to DNS name in the host field but can we have both IP and DNS shows up on a Dashboard?
Please advise.
Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need IP and DNS Name for hosts in dashboard

Post by scottwilkerson »

Where on the dashboard would you like it shown?

Many log types send the configured hostname as a field, such as logsource on linux, or Hostname on Windows servers

If you want you could also add a dns filter to the logstash configuration
https://www.elastic.co/guide/en/logstas ... s-dns.html

However, this plugin can be extremely resource intense as it will be doing a lookup for every log message received
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
amuzaffar
Posts: 3
Joined: Thu Sep 08, 2016 10:28 am

Re: Need IP and DNS Name for hosts in dashboard

Post by amuzaffar »

Thanks for your help, I was able to add it by using below filter

dns {
reverse => [ "host" ]
action => [ "append" ]
add_tag => [ "dns" ]
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need IP and DNS Name for hosts in dashboard

Post by scottwilkerson »

perfect. Glad to be of assistance!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked