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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...