Splunk Search

Display only the top 5 values in count column

sphiwee
Contributor

sphiwee_1-1599604516265.png

Id like to be able to display only the top Total values, struggling with this

Labels (3)
Tags (1)
0 Karma
1 Solution

anthonymelita
Contributor

just adding "| head 5" will keep the top five values of whatever column the results are sorted on. In his screenshot that appears to be host. 
To keep the top 5 Total do, "|sort - Total |head 5"

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

|  head 5

anthonymelita
Contributor

just adding "| head 5" will keep the top five values of whatever column the results are sorted on. In his screenshot that appears to be host. 
To keep the top 5 Total do, "|sort - Total |head 5"

sphiwee
Contributor

Is it possible to hide the total column?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| fields - Total
Get Updates on the Splunk Community!

Index This | What’s a riddle wrapped in an enigma?

September 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

BORE at .conf25

Boss Of Regular Expression (BORE) was an interactive session run again this year at .conf25 by the brilliant ...

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...