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!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...