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
Motivator

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!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...