Question 436 of 500
Transactions and Event CorrelationmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is the `transaction session_id maxspan=30m` command. This is correct because `transaction` groups events sharing a common field—here, `session_id`—and the `maxspan=30m` parameter restricts the grouping to events occurring within a 30-minute window from the first to the last event. Crucially, by default, `transaction` requires that each resulting group contain at least one event from every sourcetype present in the search results, which directly satisfies the mandate that each transaction includes both a `web_access` and an `app_log` event. On the SPLK-1003 exam, this question tests your understanding of event correlation across sourcetypes with time constraints, a common scenario for session analysis. A frequent trap is confusing `transaction` with `stats` or `eval`; remember that `transaction` is purpose-built for grouping raw events across sourcetypes, while `stats` aggregates field values. Memory tip: think of “maxspan” as the maximum time span allowed for a single transaction—like a 30-minute meeting window where every required attendee (sourcetype) must show up.

SPLK-1003 Transactions and Event Correlation Practice Question

This SPLK-1003 practice question tests your understanding of transactions and event correlation. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A Splunk user wants to correlate events from different sourcetypes (web_access, app_log) that belong to the same user session identified by session_id. The events should be grouped only if they occur within 30 minutes of each other, and each transaction should contain at least one event from each sourcetype. Which SPL construct should they use?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "least"

    Why it matters: You want the option with minimum overhead, fewest steps, or lowest impact — not the most feature-rich or comprehensive answer.

Question 1mediummultiple choice
Full question →

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

`transaction session_id maxspan=30m`

The `transaction` command groups events that share a common field (`session_id`) and allows you to set constraints like `maxspan=30m` to limit the time window between the first and last event in the transaction. By default, `transaction` requires at least one event from each sourcetype present in the search, which satisfies the requirement that each transaction contains at least one event from both `web_access` and `app_log`. This is the correct construct for correlating events across sourcetypes with a time-bound grouping.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • `append [search sourcetype=app_log]` then sort by session_id

    Why it's wrong here

    Append does not correlate; it just adds events.

  • `transaction session_id maxspan=30m`

    Why this is correct

    Transaction groups events by session_id within 30 minutes, fulfilling both requirements.

    Clue confirmation

    The clue word "least" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • `sourcetype=web_access OR sourcetype=app_log | eval session=session_id` then `stats values(*) as * by session`

    Why it's wrong here

    Stats with values does not preserve time proximity between events.

  • `join type=inner session_id [search sourcetype=app_log]` after a search on web_access

    Why it's wrong here

    Join can be inefficient and does not handle time proximity.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Splunk often tests the distinction between `transaction` and `stats` or `join`; the trap here is that candidates mistakenly think `stats` can group events with time constraints, but `stats` lacks the ability to enforce a `maxspan` or require events from multiple sourcetypes within the same group.

Detailed technical explanation

How to think about this question

Under the hood, the `transaction` command creates a new event (a 'transaction') that contains all fields from the constituent events, with a `duration` field calculated from the timestamps. The `maxspan=30m` parameter sets an absolute time boundary from the first to the last event in the transaction; if events span beyond 30 minutes, they are split into separate transactions. In real-world scenarios, this is critical for sessionization in web applications where a user session might span multiple requests and backend logs, and you need to ensure that delayed log entries (e.g., from asynchronous processing) are not incorrectly grouped with a different session.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the SPLK-1003 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related SPLK-1003 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SPLK-1003 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SPLK-1003 question test?

Transactions and Event Correlation — This question tests Transactions and Event Correlation — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: `transaction session_id maxspan=30m` — The `transaction` command groups events that share a common field (`session_id`) and allows you to set constraints like `maxspan=30m` to limit the time window between the first and last event in the transaction. By default, `transaction` requires at least one event from each sourcetype present in the search, which satisfies the requirement that each transaction contains at least one event from both `web_access` and `app_log`. This is the correct construct for correlating events across sourcetypes with a time-bound grouping.

What should I do if I get this SPLK-1003 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "least". You want the option with minimum overhead, fewest steps, or lowest impact — not the most feature-rich or comprehensive answer.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SPLK-1003 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-1003 exam.