Admin Manual

 


Configure custom segmentation for a host, source, or source type

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

Configure custom segmentation for a host, source, or source type

By default, Splunk fully segments events to allow for the most flexible searching. To learn more about segmentation in general, refer to this page about segmentation.

If you know how you want to search for or process events from a specific host, source, or sourcetype, you can configure custom segmentation for that specific type of event. Configuring custom segmentation for a given host, source, or sourcetype improves indexing and search performance and can reduce index storage size.

Configure custom segmentation in props.conf

Configure custom segmentation for events of a host, source, or sourcetype by adding the SEGMENTATION and SEGMENTATION-<segment selection> attributes to the appropriate stanza in props.conf. Assign values to the attributes using rules for index-time and search-time (Splunk Web) segmentation defined in segmenters.conf.

Add your stanza to $SPLUNK_HOME/etc/system/local/props.conf. Specify the following attribute/value pairs:

[<spec>]
SEGMENTATION = <segmenter>
SEGMENTATION-<segment selection> = <segmenter>

[<spec>] can be:

SEGMENTATION = <segmenter>

SEGMENTATION-<segment selection> = <segmenter>

<segmenter>

Example

The following example can increase search performance and reduce the size of syslog events in your index.

Add the following to the [syslog] source type stanza in props.conf:

[syslog]
SEGMENTATION = inner
SEGMENTATION-all = inner

This changes the segmentation of all events that have a sourcetype of syslog to inner segmentation, both at index time (through the SEGMENTATION attribute) and at search time in Splunk Web (through the SEGMENTATION-<segment selection> attribute).

Note: You must restart Splunk to apply changes to Splunk Web search-time segmentation, and you must re-index your data to apply changes to index-time segmentation.

This documentation applies to the following versions of Splunk: 4.2 , 4.2.1 , 4.2.2 , 4.2.3 , 4.3 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.

Feedback submitted, thanks!