Splunk Search

Lookup wildcard

bosseres
Contributor

Hello,

I need a help with using wildcards in lookup. 

I want to exclude from search results fields, which are located in lookup.

Example:

Search: host=*  | search NOT [| inputlookup test_lookup.csv]
Lookup test_lookup.csv containts two fields:

exe,comm

/usr/sbin/useradd,*

 

I need to exclude all results which include exe="/usr/sbin/useradd" and any *comm* field.

I added WILCARD(comm) in lookup definitions, but it doesn't work.

transforms.conf

[test_lookup.csv]
batch_index_query = 0
case_sensitive_match = 1
filename = test_lookup
match_type = WILDCARD(comm)

 

What I did wrong? Thank you.

Labels (1)
0 Karma

bosseres
Contributor

up

0 Karma

bosseres
Contributor

up

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...