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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...