SPLK-1002 Advanced Searching and Statistics Practice Question
Which of the following searches correctly computes the average response time per host?
⚠ Common exam trap
Many exam-takers confuse `eventstats` with `stats` or use incorrect function names like `average`, leading them to choose options that either do not produce a summary table or use invalid Splunk syntax.
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 | stats mean(response_time) by host
The `stats` command with `mean(response_time)` calculates the arithmetic mean of the response_time field, and the `by host` clause groups the calculation per host, producing the average response time for each host. This is the standard Splunk syntax for computing averages in a grouped statistics table.
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 | stats mean(response_time) by host
Why this is correct
`mean()` is an alias for `avg()` and correctly computes the average per host.
- ✗
index=main | stats average(response_time) by host
Why it's wrong here
`average()` is not a valid stats function; use `avg()` or `mean()`.
- ✗
index=main | eventstats avg(response_time) by host
Why it's wrong here
`eventstats` adds the average as a field to each event, it does not produce a summary table.
- ✗
index=main | stats avg response_time by host
Why it's wrong here
Missing parentheses `avg()` is required.
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.