Exam PSE-Cortex All QuestionsBrowse all questions from this exam
Question 33

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

    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
robyn3Option: A

head command is to display first 3 event