PSE-Cortex Exam QuestionsBrowse all questions from this exam

PSE-Cortex Exam - Question 33


Which command-line interface (CLI) query would retrieve the last three Splunk events?

Show Answer
Correct Answer: D

To retrieve the last three Splunk events using a CLI query, the correct command is '!search using=splunk_instance_1 query="* | head 3"'. The 'head' command is used in Splunk to return the first number of specified results in a search, but when ordering results in descending order by time, it will effectively retrieve the most recent events.

Discussion

1 comment
Sign in to comment
robyn3Option: A
Jul 14, 2024

head command is to display first 3 event