Splunk Search

Sum of running total at the top not bottom.

Michael_Schyma1
Contributor

.....|top limit=0 app_id app_name | fields + count, total_count, percent,app_name, app_id | accum count AS total_count

Is there any way to get a running total to put the total at the top of the page instead of the bottom?

Tags (1)
0 Karma

Michael_Schyma1
Contributor

I also tried using the stats sum(count), but all i get is one field instead of everything else that I have in my chart.

0 Karma

Jason
Motivator

Pipe to | reverse to reverse the events (or in this case, entries in the table).

0 Karma

Michael_Schyma1
Contributor

I just want the total count to come to the top and the rest of the fields stay the same.

0 Karma

Michael_Schyma1
Contributor

so your saying:

top limit=0 app_id app_name | fields + count, total_count, percent,app_name, app_id | accum count AS total_count | reverse total_count

because i cant seem to get this to work either

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...