SPLK-1002 Advanced Searching and Statistics Practice Question
Exhibit
index=main sourcetype=syslog | rex field=_raw "User (?<user>\w+) logged in from (?<ip>\d+\.\d+\.\d+\.\d+)" | search ip="10.0.*" | table user, ip
Refer to the exhibit. The search is intended to display users who logged in from IP addresses starting with 10.0, but returns no results. What is the most likely cause?
⚠ Common exam trap
Splunk often tests the misconception that the `search` command supports wildcards for extracted fields, leading candidates to overlook the need for `where` or `regex` commands for pattern matching on field values.
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 `search` command should be `where` to use wildcard on extracted fields.
The search uses `search ip=10.0*` which attempts to apply a wildcard pattern to an extracted field. However, the `search` command does not support wildcards for field-value comparisons; it treats `10.0*` as a literal string. To use wildcards on extracted fields, the `where` command with a `like` operator (e.g., `where ip like "10.0%"`) or a regex match is required. This is why option C is correct.
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 regex pattern is incorrect.
Why it's wrong here
The regex appears correct for typical syslog formats.
- ✗
The field 'ip' is not extracted properly.
Why it's wrong here
The regex seems correct, and the issue is more likely the use of `search` on an extracted field.
- ✓
The `search` command should be `where` to use wildcard on extracted fields.
Why this is correct
For extracted (non-indexed) fields, `search` may not support wildcards efficiently; `where` with `like` is appropriate.
- ✗
The index should be specified at the beginning of the search.
Why it's wrong here
The index is already specified at the beginning.
Go deeper
Related to this question
About these practice questions
Courseiva writes every SPLK-1002 question from scratch — 475 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-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.