SPLK-1001 Splunk Basics and Interface Navigation Practice Question
Exhibit
Refer to the exhibit. index=main sourcetype=access_combined | stats count by status | sort - count Results: status count 200 1234 404 56 500 12 403 5
Refer to the exhibit. After running the search, the user wants to see only events where the HTTP status is 404. Which change to the search is correct?
⚠ Common exam trap
Many candidates think they need to use a `where` command or rename fields to filter, but the most efficient method is to include the filter directly in the base search before any pipe commands.
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
✓
Change the search to: index=main sourcetype=access_combined status=404 | stats count
Adding `status=404` directly in the base search filters events at the index level before any processing, which is the most efficient approach. The `stats count` command then aggregates the filtered results, ensuring only events with HTTP status 404 are included. This leverages Splunk's index-time filtering to reduce data volume early in the pipeline.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Add | where status=404 after the sort command.
Why it's wrong here
After stats, the 'status' field is gone; only 'status' as a group exists.
- ✓
Change the search to: index=main sourcetype=access_combined status=404 | stats count
Why this is correct
Filters events before stats, so only 404 events are counted.
- ✗
Add | rename status as status_code and search for status_code=404.
Why it's wrong here
Renaming does not filter events.
- ✗
Replace stats with top limit=1 status.
Why it's wrong here
Top returns the most common value, not individual events.
Go deeper
Related to this question
About these practice questions
Courseiva writes every SPLK-1001 question from scratch — 502 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.