SPLK-1001 Basic Searching and Transforming Commands Practice Question
Which TWO of the following statements about the `stats` command in Splunk are correct? (Choose two.)
⚠ Common exam trap
Many candidates confuse the `stats` command with `eval` or `table`, thinking `stats` can create fields or display raw events, when in fact it only produces aggregated results and requires fields to exist for grouping.
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
✓
The `stats` command is used to compute summary statistics such as count, sum, avg, and distinct count.
The `stats` command in Splunk is specifically designed to compute summary statistics like count, sum, avg, and distinct count over a set of events. It transforms raw event data into aggregated results, making it a core transforming command for reporting and analysis.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The `stats` command is used to compute summary statistics such as count, sum, avg, and distinct count.
Why this is correct
Correct. `stats` is designed for aggregate calculations.
- ✗
The `stats` command displays a list of individual events with their fields.
Why it's wrong here
`stats` aggregates events, it does not list individual events.
- ✗
The `stats` command is used to create new fields using the `eval` function.
Why it's wrong here
`eval` is a separate command for field creation; `stats` uses aggregate functions.
- ✗
The `stats` command can only be used with numeric fields.
Why it's wrong here
`stats` can be used with any field, e.g., `count by host` works with string fields.
- ✓
The `stats` command can be used with a `by` clause to group results, but the `by` fields must be present in the search results.
Why this is correct
Correct. The `by` clause groups results by field values that must be in the results.
Go deeper
Related to this question
About these practice questions
This SPLK-1001 question is part of Courseiva's 502-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-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.