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
SplunkTrust
SplunkTrust

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!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...