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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...