Splunk Search

How to remove duplicate value from one column and do addition of corresponding values in another column

shaileshransing
Engager

I have 2 columns 1 has application name another has number of  instances . I want to remove duplicate application name but same time instance count should show addition of all the instance for the same application name. I'm using dedup but instance count addition need some other logic. 

 

APPNAMEINSTANCECOUNT
sap2
oracle 4
sap 2
git2
oracle4

 

 

Labels (2)
Tags (2)
0 Karma
1 Solution

shaileshransing
Engager

Thank you so much .

View solution in original post

0 Karma

shaileshransing
Engager

Thank you so much .

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Dedup might not be want you want since it just keeps the first event for each of the unique values

| stats sum(INSTANCECOUNT) as INSTANCECOUNT by APPNAME
0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...