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!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...