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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...