Splunk Search

Splunk Left outer join

snam
New Member

Hi,
I have an Index=A and inputlookfile where I'm trying to get a list of computers which are not common in 'index =A and Inputlook file B, I tried to do a left join on the 'computer' name from index =A on input look file , but I'm not getting the desired result.
Could you please let me know if we can do a left outer join in spunk to get the resultset which is not common in both the index OR lookup file?

--Thanks

Tags (1)
0 Karma

HiroshiSatoh
Champion

Is this OK?

(A) ※(outer | left)JOIN
index =A |join type=outer computer [|inputlookup B]

(A NOT B)
index =A NOT [|inputlookup B|fields computer]

(A AND B)
index =A |join type=inner computer [|inputlookup B]
OR
index =A [|inputlookup B|fields computer]

(A OR B)
index =A |append [|inputlookup B]

(When making it unique)
・・・・・ |stats latest(*) AS * BY computer
OR
・・・・・ |dedup computer

0 Karma

snam
New Member

I tried the above solutions and it didnt work.

0 Karma

HiroshiSatoh
Champion

Can you present samples of search statements and lookup files?

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...