Splunk Search

Create a new row to the table which is the sum of existing rows

amargovindan
New Member

How to have an additional row on the top which basically adds up the sum of below rows of the table
The consuming_app value as "ALL" and the remaining fileds as the sum of below rows.

Tags (1)
0 Karma
1 Solution

somesoni2
Revered Legend

Try like this

your current search producing table with consuming_app count and other fields
| appendpipe [| stats sum(*) as * | eval consuming_app="1. ALL" ] 
| sort consuming_app | eval consuming_app=if(consuming_app="1. ALL","ALL",consuming_app)

View solution in original post

0 Karma

somesoni2
Revered Legend

Try like this

your current search producing table with consuming_app count and other fields
| appendpipe [| stats sum(*) as * | eval consuming_app="1. ALL" ] 
| sort consuming_app | eval consuming_app=if(consuming_app="1. ALL","ALL",consuming_app)
0 Karma

amargovindan
New Member

Thanks Much ..Perfectly worked

0 Karma
Get Updates on the Splunk Community!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...