Splunk Search

Chart command.

sandeepmakkena
Contributor

index=aos_transaction

| chart count by payments, geo
| addtotals col=t
| sort -Total
| head 10

I want to display only top 10 payments with geo breakdown. when I use the above command my total is also showing in the bar chat.

Tags (2)
0 Karma

somesoni2
Revered Legend

Try this

index=aos_transaction 
| chart count by payments, geo
| addtotals
| sort -Total
| head 10

sandeepmakkena
Contributor

I alredy tried that but, the problem is when displaying as chart it is including total in the chart. I just want it to be used for sorting.

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 ...