Splunk Search

extract multi valued field

rashid47010
Communicator

HI everyone,

the filed containst two values. one in each line.

fieldname = value1
value2

How can we exlude the results with the fieldname contains value2.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@rashid47010
Can you please try this?

YOUR_SEARCH | where isnull(mvfind(fieldname,"value2"))

My Sample Search:

| makeresults | eval fieldname="value1,value2" | append [| makeresults | eval fieldname="value1,value3"] | eval fieldname = split(fieldname,",") | where isnull(mvfind(fieldname,"value2"))

Thanks

0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...