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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...