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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...