Archive

I want to calculate sum of the values of columns and save them in separate variables using loop (ex. foreach)

Path Finder

Field_1 Field_2 Field_3 Field_4 ........
1 1 4 9 .......
8 7 0 11 .......

sum_1=9 sum_2=8 etc...

Please help 🙂

Thanks in advance!

Tags (1)
0 Karma
1 Solution

Champion

Try this!

(your search)|stats sum(Field_*) as Field_*

View solution in original post

0 Karma

Champion

Try this!

(your search)|stats sum(Field_*) as Field_*

View solution in original post

0 Karma

Path Finder

Thanks A lot! It's Working 🙂

0 Karma
Don’t Miss Global Splunk
User Groups Week!

Free LIVE events worldwide 2/8-2/12
Connect, learn, and collect rad prizes
and swag!