Getting Data In

host name not showing correctly

hartfoml
Motivator

I have 9 Splunk servers. all of them are showing the correct FQDN for the host name. One system is showing the netbios or short name as the host name.

I Looked ad the system hostname, in all the outputs and inputs but can not seem to find where Splunk is getting the host = myserver instead of host = myserver.domain.com.

Can I use BTOOL to find out where this is comeing from?
Can I use BTOOL to find the $decideOnStartup vareable?

Tags (2)
0 Karma
1 Solution

lguinn2
Legend

All data that is indexed in Splunk has a host field. Events will be assigned a default value for host if it is not specified in inputs.conf at input time. The host value can be overridden at input or parsing time using either props.conf or transforms.conf. So you really need to examine all of these. And yes, you can use btool for each of them.

You can't use btool to find the $decideOnStartup variable: are you using this?

I think that you may be looking for the server name, which is set in etc/system/local/server.conf on the indexer. In server.conf, look for this

[general]
serverName = your-default-host

You can edit server.conf to change this. Be sure to restart Splunk for the change to take effect.

View solution in original post

lguinn2
Legend

All data that is indexed in Splunk has a host field. Events will be assigned a default value for host if it is not specified in inputs.conf at input time. The host value can be overridden at input or parsing time using either props.conf or transforms.conf. So you really need to examine all of these. And yes, you can use btool for each of them.

You can't use btool to find the $decideOnStartup variable: are you using this?

I think that you may be looking for the server name, which is set in etc/system/local/server.conf on the indexer. In server.conf, look for this

[general]
serverName = your-default-host

You can edit server.conf to change this. Be sure to restart Splunk for the change to take effect.

hartfoml
Motivator

I did find where it was entered using the btool.

It was under the [default] at the top of inputs.conf in the system/local like this

[default]
host = mysystem

I changed this to:

[default]
host = mysystem.domain.com

This fixed the problem
Thanks for the help

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...