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!

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 ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...