Splunk Enterprise version 7.0 is no longer supported as of October 23, 2019. See the Splunk Software Support Policy for details. For information about upgrading to a supported version, see How to upgrade Splunk Enterprise.
This documentation does not apply to the most recent version of Splunk® Enterprise. Click here for the latest version.Download topic as PDF
The following are the spec and example files for
# Version 7.0.3 # # This file contains possible attribute/value pairs for configuring tags. Set # any number of tags for indexed or extracted fields. # # There is no tags.conf in $SPLUNK_HOME/etc/system/default/. To set custom # configurations, place a tags.conf in $SPLUNK_HOME/etc/system/local/. For # help, see tags.conf.example. You must restart Splunk to enable # configurations. # # To learn more about configuration files (including precedence) please see the # documentation located at # http://docs.splunk.com/Documentation/Splunk/latest/Admin/Aboutconfigurationfiles
* The field name and value to which the tags in the stanza apply ( eg host=localhost ). * A tags.conf file can contain multiple stanzas. It is recommended that the value be URL encoded to avoid * config file parsing errors especially if the field value contains the following characters: \n, =,  * Each stanza can refer to only one field=value <tag1> = <enabled|disabled> <tag2> = <enabled|disabled> <tag3> = <enabled|disabled> * Set whether each <tag> for this specific <fieldname><value> is enabled or disabled. * While you can have multiple tags in a stanza (meaning that multiple tags are assigned to the same field/value combination), only one tag is allowed per stanza line. In other words, you can't have a list of tags on one line of the stanza. * WARNING: Do not quote the <tag> value: foo=enabled, not "foo"=enabled.
# Version 7.0.3 # # This is an example tags.conf. Use this file to define tags for fields. # # To use one or more of these configurations, copy the configuration block into # tags.conf in $SPLUNK_HOME/etc/system/local/. You must restart Splunk to # enable configurations. # # To learn more about configuration files (including precedence) please see the # documentation located at # http://docs.splunk.com/Documentation/Splunk/latest/Admin/Aboutconfigurationfiles # # This first example presents a situation where the field is "host" and the # three hostnames for which tags are being defined are "hostswitch," # "emailbox," and "devmachine." Each hostname has two tags applied to it, one # per line. Note also that the "building1" tag has been applied to two hostname # values (emailbox and devmachine). [host=hostswitch] pci = enabled cardholder-dest = enabled [host=emailbox] email = enabled building1 = enabled [host=devmachine] development = enabled building1 = enabled [src_ip=192.168.1.1] firewall = enabled [seekPtr=1cb58000] EOF = enabled NOT_EOF = disabled
Last modified on 21 March, 2018
This documentation applies to the following versions of Splunk® Enterprise: 7.0.3
Feedback submitted, thanks!