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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...