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!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...