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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...