Getting Data In

Why is Splunk showing wrong hostname?

sarashafek
Explorer

Hi,

I have a zscaler NSS connected to splunk. I've been running some tests to see how splunk reacts to change in DNS entries. 
It seems that the hostname isnt changed in splunk. Can anyone help me on this?DNS splunk 1.PNGDNS splunk 2.PNG

nssem1.clab.group is the old name.

Thanks! 

Labels (2)
Tags (1)
0 Karma

woodcock
Esteemed Legend

Your best bet is to use the IP and then do DNS lookup at search time with:
... | lookup dnslookup clientip AS host ...

richgalloway
SplunkTrust
SplunkTrust

Splunk doesn't necessarily get its hostname from DNS.  It can be hardcoded in inputs.conf (host=foo) or server.conf (serverName=foo).    There's also the hostnameOption in server.conf which determines if DNS is consulted, but only applies on Windows.

---
If this reply helps you, Karma would be appreciated.
0 Karma

isoutamo
SplunkTrust
SplunkTrust

It could also define so that when UF process start, it determine what is hostname at this time. Then it could be almost anything from localhost to fqdn. Actually splunk knowns hosts by GUID not by hostname.

0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...