Courseiva
Transactions and Event CorrelationeasyMultiple ChoiceObjective-mapped

SPLK-1002 Transactions and Event Correlation Practice Question

An analyst wants to group events that start with a 'login' event and end with a 'logout' event, using the username field. Which transaction syntax is correct?

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 username startswith="login" endswith="logout"

The proper syntax for grouping events that start with 'login' and end with 'logout' using the username field is 'transaction username startswith="login" endswith="logout"'. Option A lacks quotes around the values, which would cause incorrect parsing. Option B includes an unnecessary 'maxspan=2h' which is not required by the question. Option C uses 'by username' incorrectly; the field should be placed immediately after 'transaction', not using the 'by' keyword.

Answer analysis

Option-by-option breakdown

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

  • transaction username startswith=login endswith=logout

    Why it's wrong here

    Incorrect: Values must be quoted.

  • transaction username startswith="login" endswith="logout" maxspan=2h

    Why it's wrong here

    Incorrect: Extra maxspan not required.

  • transaction startswith="login" endswith="logout" by username

    Why it's wrong here

    Incorrect: Field must come before startswith; 'by' is not used.

  • transaction username startswith="login" endswith="logout"

    Why this is correct

    Correct: Proper syntax.

Visual reference

Client Server SYN (seq=100) SYN-ACK (seq=200, ack=101) ACK (ack=201) Connection established — data transfer begins

About these practice questions

Courseiva writes every SPLK-1002 question from scratch — 475 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 →

How Courseiva writes practice questions · Editorial policy

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.