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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...