SPLK-1001 Using Fields and Lookups Practice Question
Which TWO methods can be used to create a new field in a search?
⚠ Common exam trap
Splunk often tests the misconception that filtering commands like `search` or aggregation commands like `stats` can create fields, when in reality only extraction (`rex`) or evaluation (`eval`) commands generate new fields from existing data.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
rex field=raw "(?<new_field>pattern)"
The `rex` command uses a regular expression to extract a named group (`(?<new_field>pattern)`) from the `_raw` event data, dynamically creating the field `new_field` with the matched value. This is a standard method for field extraction in Splunk searches.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
search new_field=*
Why it's wrong here
Search only filters, doesn't create fields.
- ✗
timechart count by date
Why it's wrong here
Timechart creates statistical summary fields, not event-level fields.
- ✓
rex field=raw "(?<new_field>pattern)"
Why this is correct
Rex can extract and create new fields from existing ones.
- ✗
stats count by host
Why it's wrong here
Stats creates aggregates, not per-event fields.
- ✓
eval new_field = some_expression
Why this is correct
Eval creates a new field with a computed value.
Go deeper
Related to this question
About these practice questions
Courseiva writes every SPLK-1001 question from scratch — 502 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SPLK-1001 practice question is part of Courseiva's free Splunk certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SPLK-1001 exam.