Splunk Search

Is it possible to match partial results against a lookup table?

jambajuice
Communicator

Assume I have an event with the following field:

Name="Microsoft Office Outlook MUI (English) 2007"

Assume I have a lookup table as follows:

Vendor,Product,Version Microsoft Corporation,Outlook,2007 SP1

If the Name field does not consistently adhere to the format of the lookup table, is it possible to do a lookup that would do a partial match against the fields of the lookup table? So if the Name field contains Microsoft, Outlook, and 2007 it would match?

Thx.

Craig

Tags (1)

lguinn2
Legend

Yes, it is possible now! There is a great answer given by Jason to this question:

How are values in lookups matched?

chris
Motivator

Right now this is not possible out of the box with csv files. The match must be exact.

Have a look at:
http://answers.splunk.com/questions/718/how-are-values-in-lookups-matched
http://answers.splunk.com/questions/5916/using-cidr-in-a-lookup-table

You can write your own lookup script that will do the correct less sensitive matching:
http://www.splunk.com/base/Documentation/4.1.6/Knowledge/Addfieldsfromexternaldatasources

hazekamp
Builder

Be sure to use the LOOKUP- property! Does anyone know if the "lookup" search command is case sensitive/insensitive by default?

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

it's possible to make the match case-insensitive, but that's currently all. other than that, the match must be exact, not partial.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...