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!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...