You are on page 1of 5

Splunk Mania

Field Extraction –
Index time Vs
Search time
(Which is better?) Swipe
Splunk Mania

General Rule –
Index-time custom field extraction
can degrade performance

Search time Field extraction is


better.
Swipe
Splunk Mania

Index time Search time


Take place between the point when the data is Take place while a search is run, as events are
consumed and the point when it is written to disk. collected by the search.

• Default field extraction (such as host, source, • Event segmentation (also happens at index
sourcetype, and timestamp) time)
• Static or dynamic host assignment for specific inputs • Event type matching
• Default host assignment overrides • Search-time field extraction (automatic and
• Source type customization custom field extractions, including multivalue
• Custom index-time field extraction fields and calculated fields)
• Structured data field extraction • Field aliasing
• Event timestamping • Addition of fields from lookups
• Event linebreaking • Source type renaming

Swipe
• Event segmentation (also happens at search time) • Tagging
Splunk Mania
How Index time extraction degrades
performance?
As a general rule, it is better to perform most knowledge-building
activities, such as field extraction, at search time. Index-time custom
field extraction can degrade performance at both index time and
search time. When you add to the number of fields extracted during
indexing, the indexing process slows. Later, searches on the index are
also slower, because the index has been enlarged by the additional
fields, and a search on a larger index takes longer. Swipe
Splunk Mania

Next:
How Indexing works in Splunk?

Reference :
https://docs.splunk.com/Documentation/Splunk/8.2.2/Indexer/Indextimeversussearchtime

You might also like