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!

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 ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...