SPLK-1002 Advanced Visualization and Lookups Practice Question
An analyst needs to create a time-series chart showing the percentage of total HTTP status codes per day. Which approach is most efficient?
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
✓
timechart count by status | eventstats sum(count) as total by _time | eval pct = round(count/total*100,2) | chart first(pct) over _time by status
Using timechart to get counts by status, then eventstats to compute total per day, and eval to calculate percentage, is efficient and clear. Option B is incorrect because using chart with a single stats command cannot compute percentages across groups per time bucket. Option C is incorrect because addtotals adds overall totals but does not compute per-day percentages. Option D is incorrect because overcomplicates with subsearches.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
timechart count by status | eventstats sum(count) as total by _time | eval pct = round(count/total*100,2) | chart first(pct) over _time by status
Why this is correct
This correctly computes percentages per time bucket and presents them in a time series.
- ✗
chart count by status over _time | eval pct = count / sum(count) * 100
Why it's wrong here
The chart command aggregates at the same time as the eval, but sum(count) gives overall total across all time, not per day.
- ✗
timechart count by status | addtotals | eval pct = count / total * 100
Why it's wrong here
addtotals adds a column of overall total, not per-day total.
- ✗
timechart count by status | append [timechart count] | eval pct = count / [| timechart count] * 100
Why it's wrong here
Subsearches are inefficient and not designed for per-bucket calculations.
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.