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!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...