SPLK-1002 Advanced Searching and Statistics Practice Question
A user wants to see the top 5 most common HTTP methods (field "method") from web access logs, along with their percentage of total. Which search is best?
⚠ Common exam trap
It's easy for candidates to assume `top` only shows counts and not percentages, or they misuse `countfield` instead of `showperc`, leading them to choose a manual `stats` approach that omits the percentage calculation entirely.
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=web | top method limit=5 showperc=t
`top` with `limit=5` returns the five most common values of the `method` field, and `showperc=t` automatically calculates and displays each value's percentage of the total events. This directly meets the requirement to see the top 5 HTTP methods and their percentages without needing additional commands.
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=web | top method countfield=percent
Why it's wrong here
The 'countfield' argument is not valid; should use 'showperc'.
- ✗
index=web | eventstats count | top method
Why it's wrong here
Overcomplicated and does not produce the desired output.
- ✓
index=web | top method limit=5 showperc=t
Why this is correct
Correctly uses top with showperc to display percentages.
- ✗
index=web | stats count by method | sort - count | head 5
Why it's wrong here
Does not display percentage.
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.