Question 138 of 502
SPLK-1001 Using Fields and Lookups Practice Question
Which THREE statements about the 'rex' command are correct? (Choose three.)
⚠ Common exam trap
Splunk often tests the misconception that 'rex' can only extract one field per command, when in reality multiple named capturing groups in a single regex extract multiple fields simultaneously.
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 can be used to extract fields from any string field
The 'rex' command can extract fields from any string field, not just the default `_raw` field. By specifying the `field` argument, you can target any field containing string data, such as `field=uri_path` or `field=host`, and use a regular expression to extract new fields from its value.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
rex can be used to extract fields from any string field
Why this is correct
Default field is _raw, but others can be specified.
- ✓
rex can extract fields using named capturing groups
Why this is correct
Named groups like (?<field>...) extract fields.
- ✗
rex can only extract one field per command
Why it's wrong here
Multiple named groups can be used.
- ✗
rex automatically converts extracted values to numeric
Why it's wrong here
Values remain strings.
- ✓
rex can be used to modify existing field values
Why this is correct
rex can replace or modify using sed mode.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 30, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.