SPLK-1002 Advanced Searching and Statistics Practice Question
Exhibit
| eventstats avg(duration) as overall_avg | stats avg(duration) as user_avg by user | where user_avg > overall_avg
Refer to the exhibit. This search is intended to find users with average duration above overall average. However, it returns no results. Why?
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
✓
overall_avg is not available in the where clause because it is created in eventstats
The search uses eventstats to compute overall_avg, adding it to each event. Then the stats command groups by user, computing user_avg, but it does not retain overall_avg in the output. Therefore, when the where clause references overall_avg, that field no longer exists, causing the search to return no results. Option A is wrong because eventstats before stats is the correct order to compute overall_avg from all events. Option B is wrong because the where clause is appropriate for filtering; no need to use search command here. Option D is wrong because a subquery is not required; the issue is the field being dropped.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
eventstats should be after stats
Why it's wrong here
If eventstats after stats, it would add overall_avg to each computed row, but then the where would work, but it's not how the search is written.
- ✗
The where clause should use the 'search' command
Why it's wrong here
Where is fine; the error is missing field.
- ✓
overall_avg is not available in the where clause because it is created in eventstats
Why this is correct
Stats output does not include fields from prior commands unless preserved.
- ✗
The search requires a subquery to compute overall_avg
Why it's wrong here
Subquery is unnecessary; eventstats works but needs to be preserved.
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.