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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...