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!

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 ...