SPLK-1002 Advanced Searching and Statistics Practice Question
An analyst runs a search that includes a subsearch: `index=web [search index=web status=500 | fields url | dedup url | limit 5]`. The main search returns no results even though the subsearch returns 5 URLs. What is the most likely issue?
⚠ Common exam trap
Test-takers frequently assume the subsearch results are automatically used as a proper filter, but Splunk requires explicit formatting (e.g., `return` or `format`) to ensure multiple values are correctly combined with OR logic in the main search.
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 subsearch returns multiple values but the main search does not properly use them as a filter.
The subsearch returns a list of 5 URLs, but the main search `index=web [subsearch]` uses these results as a filter. By default, a subsearch returns its results as a single string (or multiple values) that are passed to the main search's `search` command. If the subsearch returns multiple values (e.g., `/page1 /page2 ...`), the main search interprets them as a single search string unless properly formatted with quotes or an `OR` operator. Since the subsearch does not use `format` or `return` to structure the output, the main search likely receives an invalid or empty filter, yielding no results.
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 `limit 5` should be inside the subsearch command, not after dedup.
Why it's wrong here
The subsearch is syntactically correct; `limit 5 at the end is fine.
- ✗
The main search index should be different from the subsearch index.
Why it's wrong here
It is allowed to use the same index in main and subsearch.
- ✓
The subsearch returns multiple values but the main search does not properly use them as a filter.
Why this is correct
The subsearch returns a list of URLs, but the main search must use the result in a way that matches the field; typically one would use `[search ... | table url | format]` to ensure correct formatting.
- ✗
The subsearch should not use `fields url` because that causes loss of the search command.
Why it's wrong here
`fields url` is valid and keeps only the url field; the subsearch output format will still produce proper filter.
Go deeper
Related to this question
About these practice questions
One of 475 original SPLK-1002 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.