Splunk Search

How to use two lookups in a search but exclude values from one of them?

hyahmadi
Explorer

hello splunkers,
I need to exclude in my search, IP values in the second lookup file
| inputlookup file1_lookup.csv | search [|inputlookup file2csv.csv ]
How to resolve that?
Rq:field name= IP Address in the first lookup file
field name= dst in the second lookup file

thanks.

Tags (2)
0 Karma

OL
Communicator

Can you try this?

| inputlookup file1_lookup.csv | search [|inputlookup file2csv.csv | fields dst | rename dst AS "IP Address"]

Regards,
Olivier

0 Karma

hyahmadi
Explorer

Hello Olivier thanks for help,
but in my search I have to exclude values for "IP Address" in the second file.
I don't know if I can use the terme NOT to exclude values?

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...