Alerting

How to use wildcard in multi fields in lookup table?

Erfan
Explorer

Hi

I want to use a lookup table as a whitelist for an alert.

1. I created a whitelist.csv lookup table including src, dst, protocol, user, whitelisted

src  |  dst  | protocol  | user | whitelisted

192.168.10.1 | 120.18.97.6 | * | * | true

192.168.10.5 | * | * | * | true

* | * | https | bob | true

2. I created a lookup definition with match type:  WILDCARD(src), WILDCARD(dst), WILDCARD(user), WILDCARD(protocol)

3. Added following line to my search:

| lookup whitelist.csv src user dst protocol

| where isnull(whitelisted)

 

But is does not work. Do I need to change anything?

Labels (2)
Tags (2)
0 Karma

manjunathmeti
Champion

hi @Erfan,

This is working for me, make sure your file contains data in the below format. There should not be any space b/w fields and values.

src,dst,protocol,user,whitelisted
192.168.10.1,120.18.97.6,*,*,true
192.168.10.5,*,*,*,true
*,*,https,bob,true

  

0 Karma
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...