Refine your search:

When would I ever consider extracting a field at index time?

asked 14 May '10, 13:16

Dan's gravatar image

Dan ♦
7842317
accept rate: 33%


3 Answers:

We do not recommend that you add custom fields to the set of default fields that Splunk automatically extracts and indexes at index time, such as timestamp, punct, host, source, and sourcetype. Adding to this list of fields can negatively impact indexing performance and search times, because each indexed field increases the size of the searchable index. Indexed fields are also less flexible--whenever you make changes to your set of fields, you must re-index your entire dataset. For more information, see "Index time versus search time" in the Admin manual.

With those caveats, there are times when you may find a need to change or add to your indexed fields. For example, you may have situations where certain search-time field extractions are noticeably impacting search performance. This can happen, for example, if you commonly search a large event set with expressions like foo!=bar or NOT foo=bar, and the field foo nearly always takes on the value bar.

Conversely, you may want to add an indexed field if the value of a search-time extracted field exists outside of the field more often than not. For example, if you commonly search only for foo=1, but 1 occurs in many events that do not have foo=1, you may want to add foo to the list of fields extracted by Splunk at index time.

In general, you should try to extract your fields at search time. For more information see "Create search-time field extractions" in the Knowledge Manager manual.

[ from http://www.splunk.com/base/Documentation/latest/Admin/Configureindex-timefieldextraction ]

link

answered 14 May '10, 13:26

Dan's gravatar image

Dan ♦
7842317
accept rate: 33%

Also see some related discussion (along with some additional use cases for indexed fields) here:

link

answered 17 May '10, 16:13

Lowell's gravatar image

Lowell ♦
9.6k637
accept rate: 40%

Almost never. Only field that is of real importance to be derived/retrieved at index time is the _time field. The rest are usually better off being done dynamically (aka at search time)

link

answered 17 May '10, 17:16

rayfoo's gravatar image

rayfoo
1781110
accept rate: 12%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×351

Asked: 14 May '10, 13:16

Seen: 1,699 times

Last updated: 17 May '10, 17:16

Copyright © 2005-2012 Splunk, Inc. All rights reserved.