SPLK-1002 Advanced Searching and Statistics Practice Question
Exhibit
Refer to the exhibit. ``` index=main sourcetype=access_combined | rex field=uri_path "/api/(?<api_version>v[0-9]+)/.*" | stats count by api_version ```
Refer to the exhibit. The search above returns no results for api_version. What is the most likely cause?
⚠ Common exam trap
Splunk often tests the misconception that a regex pattern is incorrect when the real issue is that the source field is missing or contains non-matching data, leading candidates to focus on syntax rather than data validation.
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
✓
The field `uri_path` does not exist or contains data that does not match the pattern.
The `rex` command extracts fields based on a regex pattern applied to a specific source field. If `uri_path` does not exist in the events or its values do not match the pattern `(?<api_version>/v[0-9]+)`, then no `api_version` field will be created. This is the most likely cause because the search returns no results for `api_version`, indicating the extraction failed at the source field level.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The stats command cannot be used after rex.
Why it's wrong here
rex outputs events, so stats can be used after it.
- ✓
The field `uri_path` does not exist or contains data that does not match the pattern.
Why this is correct
If `uri_path` is not a field in the sourcetype, the rex will not extract anything.
- ✗
The search time range is too short to include any events.
Why it's wrong here
The time range would cause no results at all, not only missing api_version.
- ✗
The regex pattern is incorrectly written.
Why it's wrong here
The pattern looks correct for extracting api_version from a URI path.
Go deeper
Related to this question
About these practice questions
This SPLK-1002 question is part of Courseiva's 475-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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-1002 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-1002 exam.