SPLK-1002 Transactions and Event Correlation Practice Question
A Splunk Power User needs to find the average duration of user sessions. The sessions are defined by a 'user_id' field and have a max inactivity of 15 minutes. Which search correctly calculates this?
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=main | transaction user_id maxpause=15m | stats avg(duration)
The transaction command with maxpause=15m groups events by user_id and adds a duration field. The stats command then calculates the average duration.
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=main | transaction user_id maxpause=15m | stats avg(duration)
Why this is correct
Correct: transaction adds duration, stats averages it.
- ✗
index=main | transaction user_id maxpause=15m | eval avg=avg(duration)
Why it's wrong here
eval cannot compute aggregation; stats must be used.
- ✗
index=main | transaction user_id maxpause=15 | stats avg(_time)
Why it's wrong here
maxpause needs 'm' for minutes; _time is not duration.
- ✗
index=main | transaction user_id maxspan=15m | stats avg(duration)
Why it's wrong here
maxspan sets total time, not inactivity; sessions may span long but have short inactivity.
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.