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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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