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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...