Splunk Search

Remove original and duplicate items from a query

francesco1g
Engager
Hi, from two columns, in order to create a report, i need to remove the elements that are present twice, not only remove the duplicates (dedup is not useful because it only removes duplicates) but also the original elements, for example:

Table A | Table B
10.10       10.2
10.21       10.32
10.2          10.3
10.60       10.21

Table C (result)
10.10
10.32
10.3
10.60



thanks for your help
Labels (1)
Tags (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

 

| eval tableC=mvappend(tableA,tableB)
| stats count by tableC
| where count=1
| fields - count

 

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

 

| eval tableC=mvappend(tableA,tableB)
| stats count by tableC
| where count=1
| fields - count

 

0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Brett Adams

In our third Spotlight feature, we're excited to shine a light on Brett—a Splunk consultant, innovative ...

Index This | What can you do to make 55,555 equal 500?

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

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...