Topics

| pdf version

How Splunk Works

Segmentation


Splunk > The IT Search Company

  • Search and navigate IT data from applications, servers and network devices in real-time.
  • Download Splunk

Localized Splunk documentation

Looking for Splunk documentation in other languages?

Enable custom segmentation

This documentation does not apply to the most recent version of Splunk.

This documentation applies to the following versions of Splunk: 3.0.2 , 3.1 , 3.1.1 , 3.1.2 , 3.1.3 , 3.1.4

Enable custom segmentation

You can set up segmenters.conf to work with a specific host, source, or sourcetype by configuring props.conf. Create a stanza in props.conf, designating your desired host, source or sourcetype, and then add the two required keys - the [SEGMENTATION=] key and the [SEGMENTATION-all=] key. These keys must refer to the segmentation rules you have created in $SPLUNK_HOME/etc/bundles/local/segmenters.conf or rules that already exist in $SPLUNK_HOME/etc/bundles/default/segmenters.conf.


Important: SEGMENTATION must be fully capitalized.


Configuration

[<spec>]
SEGMENTATION = $SEG_RULE
SEGMENTATION-all = $SEG_RULE2

<spec> can be:

  1. <sourcetype>, the sourcetype of an event
  2. host::<host>, where <host> is the host for an event
  3. source::<source>, where <source> is the source for an event

$SEG_RULE and $SEG_RULE2 refer to the segmentation rules you have created in segmenters.conf. They can be different or the same.

Example

Add the following to $SPLUNK_HOME/etc/bundles/local/props.conf:


[syslog]
SEGMENTATION = inner
SEGMENTATION-all = inner

This will change all syslog data to use inner segmentation.

Revision: 207 | Contact | Privacy Policy | Terms of Use | Community content licensed under Creative Commons