Splunk Search

Blacklist lookup - search query

astackpole
Path Finder

I have a blacklist.csv file that looks like the following,

namedescription
*vpn*VPN was found.
*putty*Putty was found.

 

I'm trying this search and it's showing events match, but not outputting the name/description fields from the lookup.

index=os 
| lookup blacklist.csv name OUTPUT description 
| table name description

 

My goal is to search each event for every value in the name column, so the basic query I'm trying to match with the use of a lookup file is,

index=os
| search *vpn* OR *putty*

 

What lookup query do I need to implement this type of search and display the results?

Labels (1)
0 Karma

somesoni2
Revered Legend

The lookup table files (CSV lookup) doesn't support wildcard match on it's own. YOu've to create a lookup definition that supports wildcard match.  Have a look at this post for more details:

https://community.splunk.com/t5/Splunk-Search/Can-we-use-wildcard-characters-in-a-lookup-table/td-p/...

0 Karma

astackpole
Path Finder

What if there's no specific field I'm trying to search on?

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...