Splunk Search

chart query

DTERM
Contributor

The following query

index=test | top Hostname

produces a chart that has percentages included in the chart along with the top hostnames. How do I not include the percentages in the chart? I do not want percentages in the chart.

Tags (1)
0 Karma
1 Solution

ahall_splunk
Splunk Employee
Splunk Employee

The showperc modifier to the top command is what you want. Here is how you use it:

index=test | top showperc=false Hostname

View solution in original post

0 Karma

ahall_splunk
Splunk Employee
Splunk Employee

The showperc modifier to the top command is what you want. Here is how you use it:

index=test | top showperc=false Hostname
0 Karma

Greg_LeBlanc
Path Finder

You can do:

index=test 
| stats count(_raw) as topHostnames by Hostname 
| sort - topHostnames
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...