QuestionQ167

VerifiedUsing Basic Transforming Commands

When using the top command in the following search, which statement about the results will be true?

index="main" sourcetype="access_*" action="purchase" | top 3 statusCcde by user showperc=f countfield=status_code_count

Explanation

top 3 <field> by user returns up to the three most common values of the specified field separately for each user. showperc=f omits percentage output, while countfield=status_code_count renames the count field. Splunk supports both a positional limit such as top 3 and the equivalent limit=3 syntax.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!