Splunk Search

How to create and extract values from multivalue field ?

karthi2809
Builder

Hello to all,

I have a multivalue field with a content.errormsg with values and also with a null value. If the null value in the fields it will not showing any results in the output
example:

errormsg
closed connection
Empty String
null


needed result:

errormsg
closed connection
Empty String
Labels (1)
0 Karma

marnall
Builder

Sure thing, you can use the mvfilter eval function to get rid of the unwanted value in the multivalue field

 

| eval yourfield = mvfilter(yourfield != "null")

ITWhisperer
SplunkTrust
SplunkTrust

Do you mean something like this?

| eval errormsg=mvfilter(errormsg!="null")
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 ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...