SPLK-1002 · Question #133
Consider the following search: Index=web sourcetype=access_combined The log shows several events that share the same JSESSIONID value (SD404K289O2F151). View the events as a group. From the…
The correct answer is B. index=web sourcetype=access_combined JSESSIONID <SD404K289O2F151>. To view all events sharing a specific JSESSIONID value as a group, the search should include the session ID value as a keyword filter alongside the JSESSIONID field reference.
Question
Consider the following search:
Index=web sourcetype=access_combined The log shows several events that share the same JSESSIONID value (SD404K289O2F151). View the events as a group. From the following list, which search groups events by JSESSIONID?
Options
- Aindex=web sourcetype=access_combined SD404K289O2F151 I table JSESSIONID
- Bindex=web sourcetype=access_combined JSESSIONID <SD404K289O2F151>
- Cindex=web sourcetype=access_combined I highlight JSESSIONID I search SD404K289O2F151
- Dindex-web sourcetype=access_combined I transaction JSESSIONID I search
How the community answered
(19 responses)- A5% (1)
- B89% (17)
- C5% (1)
Why each option
To view all events sharing a specific JSESSIONID value as a group, the search should include the session ID value as a keyword filter alongside the JSESSIONID field reference.
The 'table JSESSIONID' command only reformats results into a tabular column display; it does not filter events to show only those matching a specific JSESSIONID value.
The search in option B uses 'JSESSIONID <SD404K289O2F151>' as a combined field and value filter, which finds all events containing that specific session ID. This retrieves and groups together every event that shares the same JSESSIONID, satisfying the requirement to view them collectively.
The 'highlight' command visually marks matching terms in displayed events but does not filter the result set to include only events with a specific JSESSIONID value.
Option D contains a syntax error ('index-web' instead of 'index=web') and the transaction command without a proper value filter does not correctly isolate events for the specific session ID.
Concept tested: Splunk search filtering events by a specific field value
Source: https://docs.splunk.com/Documentation/Splunk/latest/Search/Searchwithfieldlookups
Topics
Community Discussion
No community discussion yet for this question.