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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...