Splunk Search

search using terms from lookup in an (mv) string field.

drodman29
Path Finder

I have an mvfield  of type string in my results. 

I want to search and match all values of this field for words that come from a csv lookup. 

LookupRows: 

{row1, "mary white"} 

{row2, "Tom White"} 

Results

Astring="Mary had a white lamb" , "tom had none" , "Joe was here" 

Astring="No match here" , "tom thumb" 

Searching with the lookup values against the full text of the event is not an acceptable answer. 

Labels (2)
0 Karma
1 Solution

drodman29
Path Finder

Resolved using a _raw rename. 

BaseSearch | eval MyRaw=_raw | mvexpand Astring | eval _raw=Astring | search [|inputlookup searchterms.csv] | table _time, Astring 

View solution in original post

0 Karma

drodman29
Path Finder

Resolved using a _raw rename. 

BaseSearch | eval MyRaw=_raw | mvexpand Astring | eval _raw=Astring | search [|inputlookup searchterms.csv] | table _time, Astring 

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...