Splunk Enterprise

how to sum different fields

jip31
Motivator

hi

 

what I have to do for doing a total sum of the 3 fields?

Thanks

 

| stats count(toto) as 1, count(tutu) as 2 count(titi) as 3 by site

 

 

Tags (1)
0 Karma
1 Solution

PickleRick
SplunkTrust
SplunkTrust

Either I don't understand your requirement or there's nothing easier than

| stats count(c1) as s1 count(c2) as s2 count(c3) as s3 by site
| eval t=s1+s2+s3

View solution in original post

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Either I don't understand your requirement or there's nothing easier than

| stats count(c1) as s1 count(c2) as s2 count(c3) as s3 by site
| eval t=s1+s2+s3
0 Karma

jip31
Motivator

oh of course..., thanks

Tags (1)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...