Splunk Search

How to Add two results

wasifchowdhury
Explorer

wasifchowdhury_0-1631111314504.png

How do I add the two values from stats which I get from these query?

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Check the addcoltotals command.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Check the addcoltotals command.

---
If this reply helps you, Karma would be appreciated.
0 Karma

wasifchowdhury
Explorer

where should I use the addcoltotals command? After |stats max?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Yes.  The columns have to exist before addcoltotals can add them.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...