SPLK-1002 practice question 30 of 35

Consider the following search: index=web sourcetype=access_corabined The log shows several events that share the same jsesszonid value (SD462K101O2F267). View the events as a group. From the following list, which search groups events by jSSESSIONID?

Full set: 297 questions

Domain Correlating Events

Answer options
A: index=web sourcetype=access_combined I transaction JSESSZONID I search SD462K101C2F267 Correct answer
B: index=web sourcetype=access_combined SD462K101O2F267 | table JSESSIONID
C: index=web sourcetype=access_combined | highlight JSESSIONID | search SD462K101O2F267
D: index=web sourcetype=access_combined JSESSTONID
Correct Answer:
A. index=web sourcetype=access_combined I transaction JSESSZONID I search SD462K101C2F267
Explanation

The transaction command is the correct tool for grouping events based on a shared field value. In this scenario, transaction JSESSIONID groups all events from the specified index and sourcetype into transactions where each event in a transaction shares the same JSESSIONID. The subsequent search SD462K101O2F267 command then filters these newly created transaction events, displaying only the single transaction (the group of events) that contains the specified session ID. This directly accomplishes the goal of viewing the related events as a group.

Why Incorrect

B. The table command formats results into a table; it does not group the raw events into a single correlated transaction.
C. The highlight command is a formatting tool used to visually emphasize terms in the search results; it does not perform event grouping.
D. This search is a simple keyword search that finds events containing the literal string "JSESSIONID", rather than grouping them by the field's value. ---

References

1. Splunk Enterprise, Search Manual, "The transaction command": "The transaction command finds transactions that are based on events that share the same field values... The events in a transaction are grouped and sorted in time order." This document confirms that transaction is the appropriate command for grouping events based on a shared field like JSESSIONID. (See: https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction)

2. Splunk Enterprise, Search Tutorial, "Group events into transactions": "The transaction command groups search results into transactions. A transaction is a group of events that are related, such as events related to a single web browsing session... You can define a transaction using field values." This tutorial explicitly states the purpose of transaction is to group related events, such as those in a user session. (See: https://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/Groupseventsintotransactions)

Scroll to Top