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!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...