Splunk Search

Is there any way to use another function as fillnull to fill null spaces?

KalebeRS
Explorer

Hello.

I have a table with a column for Releases, in this case, a bunch of them does not have releases. I used the fillnull function in this specific field, but it's not working. In this table I have other columns that I have null values as well, but for the other ones the fillnull worked. How can I do the same for the releases field?

 

 

 

 

KalebeRS_0-1689329803905.png

 

0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Null is not the same as an empty string - perhaps your Releases field has an empty string or is just spaces - try something like this

| eval Release=if(trim(Release)="","No release available",Release)

 

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Null is not the same as an empty string - perhaps your Releases field has an empty string or is just spaces - try something like this

| eval Release=if(trim(Release)="","No release available",Release)

 

Get Updates on the Splunk Community!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...