What is the difference between search-time and index-time field extraction? [Intermediate]
Answer
Search-time field extraction happens when a search runs; index-time extraction happens before or during indexing and stores fields in a way that can affect indexing and search performance. Search-time is more flexible; index-time is more permanent and expensive to change.
Technical explanation
Search-time extractions are preferred for most fields because they can be changed without reindexing data.
Index-time extractions are used when fields must be indexed for performance, routing, masking, or compliance requirements.
Poor index-time decisions can increase storage and create long-term maintenance problems.
Hands-on example
Example: extract error_code and order_type at search time from JSON logs. Use index-time processing only to set host, source, sourcetype, timestamp, line breaking, routing, or to mask a secret before data is written.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Observability interview questions
- What is the difference between a universal and a heavy forwarder? [Intermediate]
- What is the difference between a Splunk forwarder, indexer, and search head? [Intermediate]
- What is the Splunk data pipeline (input, parsing, indexing, search)? [Intermediate]
- What is a Splunk source, sourcetype, and host? [Intermediate]
- How do you build a Splunk dashboard, and when is it better than Grafana? [Advanced]
- What is data retention and a bucket lifecycle (hot, warm, cold, frozen) in Splunk? [Advanced]
- How do you correlate logs and metrics during an incident? [Advanced]
- What is Wavefront (Tanzu Observability), and what is it used for? [Advanced]