Splunk Search

inverse join in Splunk

jonthanze
Explorer

I have a search between two data sets using join, let's say sourcetype A and B.

My search looks like this:



sourcetype=A fieldA |eval fieldB=fieldA|join fieldB [search sourcetype=B fieldB]

The results i am receiving is the list of all the events where fieldA in A is the same as fieldB in B.

What I am trying to receive is the list of fieldA that doesn't exist in B.

Can someone please help me with this ?

Regards,

Jonathann

Tags (3)
0 Karma

linu1988
Champion

Try to have join type left, which will give all the details.

sourcetype=A fieldA |eval fieldB=fieldA|join type=left fieldB [search sourcetype=B fieldB]

Thanks

0 Karma

brandonhough
New Member

This worked perfectly. Thank you!!

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

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