How to Set Inactivity Timeout with maxpause in Splunk Transaction
A security analyst needs to correlate login events from multiple authentication servers to track a single user session. The events share a common 'session_id' field but have different timestamps. Which transaction command option should be used to ensure the session is considered complete after 30 minutes of inactivity?
Quick Answer
This question is testing precise knowledge of what maxpause actually measures: the maximum allowed gap of inactivity between one event and the next within a transaction, not the total length of the session. Because the requirement here is specifically about ending a session after 30 minutes of inactivity, the parameter needs to close the transaction after any pause reaches 30 minutes, which is exactly what maxpause=1800 does, since Splunk's time-based transaction parameters are expressed in seconds and 1800 seconds equals 30 minutes. This is different from a parameter that would cap the transaction's total duration regardless of activity level, which would end sessions based on elapsed time even if the user kept generating events continuously. Since the scenario cares about inactivity specifically, and doesn't place any limit on how long an active session can run, maxpause is the parameter that matches the stated requirement, while a total-duration limit would be solving a different problem. The general skill being tested is reading transaction parameter requirements carefully enough to tell inactivity-based boundaries apart from duration-based ones; whenever a scenario says a session or transaction should close after a period of no new activity, that's a maxpause question, and whenever it caps how long something is allowed to run in total, that's a different parameter entirely.
⚠ Common exam trap
Watch out — candidates often confuse maxspan (total duration limit) with maxpause (inactivity timeout), leading candidates to choose maxspan=30m when the requirement explicitly calls for an inactivity-based end condition.
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
✓
maxpause=1800
(maxpause=1800) is correct because it sets a maximum inactivity period of 1800 seconds (30 minutes) between events in a transaction. When no new events with the same session_id arrive within that window, the transaction is considered complete. This directly addresses the requirement to end a session after 30 minutes of inactivity, regardless of the total duration of the session.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
startswith=login endswith=logout
Why it's wrong here
This defines start and end events, but does not handle inactivity timeout.
- ✗
mvlist=session_id
Why it's wrong here
mvlist is not a valid transaction option; it is used elsewhere.
- ✗
maxspan=30m
Why it's wrong here
maxspan limits the total duration of the transaction, not the gap between events.
- ✓
maxpause=1800
Why this is correct
maxpause=1800 seconds (30 minutes) closes the transaction after 30 minutes of 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 →
Same concept, more angles
2 more ways this is tested on SPLK-1002
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. An analyst wants to group events by 'session_id' but only if the events occur within 5 minutes of each other, and there must be at least 2 events per transaction. Which transaction parameters achieve this?
easy- A.transaction session_id maxspan=300
- B.transaction session_id maxspan=300 maxevents=2
- ✓ C.transaction session_id maxpause=300 minevents=2
- D.transaction session_id maxspan=300 minpause=300
Why C: Maxpause=300 ensures events are within 5 minutes of each other, and minevents=2 ensures at least 2 events. Option A (maxspan=300) only limits total time. Option B (maxevents=2) limits event count but not grouping window. Option D (minpause) is not a valid parameter.
Variation 2. A SOC analyst is investigating a security incident. They use `transaction src_ip` to group firewall events. The search returns too many single-event transactions. The analyst suspects that some events should be grouped but are not because the IP address is used by different sessions. Which option can help ensure events are grouped only if they occur close in time?
medium- A.maxspan=1h
- B.maxevents=2
- C.fields=src_ip
- ✓ D.maxpause=5m
Why D: The maxpause option sets the maximum time gap allowed between consecutive events in a transaction. Using a short maxpause helps ensure that events from different sessions are not incorrectly grouped.
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.