SPLK-1001 Basic Searching and Transforming Commands Practice Question
An analyst needs to find the count of events by source type for each day in the past week, but only for source types with more than 1000 events. Which search is correct?
⚠ Common exam trap
Splunk often tests the distinction between `bucket` and raw _time grouping, and the misuse of `search` vs `where` for filtering aggregate results, leading candidates to pick options that omit bucket or use `search` incorrectly.
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=* earliest=-7d | bucket _time span=1d | stats count by sourcetype _time | where count>1000
It uses `bucket _time span=1d` to group events into daily time buckets, then `stats count by sourcetype _time` to count events per source type per day, and finally `where count>1000` to filter for source types exceeding 1000 events per day. The `bucket` command is essential to create discrete daily intervals; without it, `stats count by sourcetype _time` would treat each unique _time value as a separate bucket, which is not the intended daily aggregation.
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=* earliest=-7d | bucket _time span=1d | stats count by sourcetype _time | where count>1000
Why this is correct
Correctly buckets and filters after stats.
- ✗
index=* earliest=-7d | stats count by sourcetype _time | where count>1000
Why it's wrong here
Does not bucket time, so count is per sourcetype overall.
- ✗
index=* earliest=-7d | timechart count by sourcetype | search count>1000
Why it's wrong here
search after timechart is not recommended.
- ✗
index=* earliest=-7d | timechart count by sourcetype | where count>1000
Why it's wrong here
where may not filter correctly on timechart output.
Go deeper
Related to this question
About these practice questions
One of 502 original SPLK-1001 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-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.