SPLK-1001 Splunk Basics and Interface Navigation Practice Question
An administrator needs to find events from hosts that have reported a critical error in the last hour. Which search uses a subsearch correctly?
⚠ Common exam trap
Splunk often tests the subtle difference between `fields` and `table` in subsearches, where `fields` retains the column header and can cause the outer search to misinterpret the result, while `table` produces a clean list that Splink can use correctly.
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
✓
index=main [search index=main error="critical" | table host]
It uses a subsearch that returns a list of hosts (via `table host`) and passes that list to the outer search, which then filters events from those hosts. The outer search `index=main` combined with the subsearch result effectively becomes `index=main host=<host1> OR host=<host2> ...`, correctly retrieving events from hosts that reported a critical error in the last hour. The subsearch runs first, and its output is used as a condition in the main search.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
index=main host IN [search error="critical" | fields host]
Why it's wrong here
IN is not supported in basic search; subsearch works as a filter.
- ✗
index=main | where host=[search index=main error="critical" | fields host]
Why it's wrong here
Subsearch cannot be used inside the where command like this.
- ✗
index=main AND [search error="critical" | table host]
Why it's wrong here
AND operator not used with subsearch; subsearch stands alone.
- ✓
index=main [search index=main error="critical" | table host]
Why this is correct
Correct subsearch syntax; outer search uses returned hosts as filter.
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.