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!

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...

The Great Resilience Quest: 10th Leaderboard Update

The tenth leaderboard update (11.23-12.05) for The Great Resilience Quest is out >> As our brave ...