Splunk Core Certified User — Question 194
When using the top command in the following search, which of the following will be true about the results? index="main" sourcetype="access_*" action="purchase" | top 3 statusCcde by user showperc=f countfield=status_code_count
Answer options
- A. The percentage field will be displayed in the results.
- B. The top three most common values in statusCode will be displayed for each user.
- C. The search will fail. The proper top command format is top limit=3 instead of top 3.
- D. Only the top three overall most common values in statusCode will be displayed.
Correct answer: B
Explanation
The correct answer is B because the command is structured to display the top three statusCode values for each user. Option A is incorrect since the showperc=f flag indicates that percentages should not be shown, while option C is misleading as the command format is valid. Option D is also incorrect because the command is grouping results by user, not providing an overall summary.