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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...