Splunk Search

summation of row values

abhayneilam
Contributor

I have a report like this :

keyword "one" "two" "three"
mumbai 5 3 2
kolkata 2 2 1
chennai 0 6 4

I want my output like this :

keyword sum "one" "two" "three"
mumbai 10 5 3 2
kolkata 5 2 2 1
chennai 10 0 6 4

sum is the field which is the summation of each row

Please help

Thanks in advance,
Abhay

Tags (4)
0 Karma

Ayn
Legend

Ayn
Legend

The docs provide examples. It's as easy as adding | addtotals at the end of your search. What is it you don't understand?

abhayneilam
Contributor

Hi,

Can you please show me one example to use that.

Please, it is a kind request

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...