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!

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...