Splunk Search

summation of row values


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,

Tags (4)
0 Karma



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



Can you please show me one example to use that.

Please, it is a kind request

0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!