Splunk Search

how to whitelist using lookup table

ajayrejin
Explorer

we have threat logs from firewall. That log contains a signature, which is captured under signature field. my requirement here is to white list 3 fields(signature, source and destination) simultaneously. What i am currently doing is create a lookup table, that 3 columns(signature, source and destination) and their respective value.
I am using the below query, however its doesnt work

index= firewall NOT[|inputlookup whitelist.csv | fields signature,source,destination]

0 Karma

koshyk
Super Champion

Your query should have worked.. i.e.

index= firewall NOT [|inputlookup whitelist.csv | fields signature,source,destination]

But please ensure your data in index=firewall contains precisely the fields signature, source, destination (The field names are case-sensitive too) and contains ALL of the fields in each Event. If a single field is missing, you will get empty results.

to debug this, do the fields individually, and test if each of the field works. something like below and test for each field

index= firewall NOT [|inputlookup whitelist.csv | fields signature]

..

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try formatting the results of the subsearch.

index= firewall NOT[|inputlookup whitelist.csv | fields signature,source,destination | format]
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

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

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...