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!

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