Getting Data In

Difference between 'show default-hostname' and 'show servername'

nocostk
Communicator

When running these two commands on a host I get different values. What (if any) is the difference between the two?

# /opt/splunk/bin/splunk show default-hostname
Default hostname for data inputs: sapi09.
# /opt/splunk/bin/splunk show servername
Server name: sapi09.mydomain.com-$USER
Tags (1)

Paolo_Prigione
Builder
  • servername is used to identify the Splunk instance for features such as distributed search and defaults to <hostname>-<user running splunk>. You set this in server.conf.
  • default-hostname is used as default "host" field on all events coming from that Splunk instance. You set this in inputs.conf.
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...