Documentation: 3.0.1
Print Version Contents
This page last updated: 10/18/07 05:10pm

How host works

Host is the physical device on the network where an event originated. The value of host may be an IP address, hostname, or fully qualified domain name. Host:: is a core field that is indexed and stored with every event.

Host provides an easy way to find all data originating from a given device. Tagging hosts lets you find data from a group of hosts with a common function or configuration.

How host is assigned

Default assignment

If no other host rules are specified for a source, host will be set to a default host value that applies to all data coming via inputs on a given Splunk server. The default host value is the hostname or IP address of the network host. When Splunk is running on the server where the event occurred (which is the most common case) this is correct and no manual intervention is required.

Learn how to set default host for a Splunk server.

Overriding host for remote archive files

If you are running Splunk on a central log archive, or you are working with files copied from other hosts in the environment, you may need to override the default assignment. You can define host assignment for an input based on either a custom host value for all data for that input or matching a portion of the path or filename of a source, such as when you have a directory structure that segregates the log archive for each host in a different subdirectory.

Centralized log server environment

In the case where there is a centralized log host sending events to Splunk, there may be many servers involved. The central log server is called the reporting host. The system where the event occurred is called the originating host (or just the host). In this case you will need to define rules to extract host per event.

Host tagging

The host:: field can be tagged to provide extra information. Host tagging allows multiple hosts to be clustered under ad-hoc categories for more robust searches.

Configuration files for host

Host can be set in inputs.conf. More advanced host extraction configurations require changes to transforms.conf and props.conf. Before manually modifying any configuration file, please read about bundle files.

Comments

No comments have been submitted.

Log in to comment.