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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...