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!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...