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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...