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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...