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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...