Splunk Search

How to use fillnull for certain fields (and not for other ones)

rrovers
Communicator

My search ends with:

 

| table Afdeling 20* Voorlaatste* Laatste* verschil

 

It has several detail rows and 1 row with totals. I want to use fillnull for the totals for the 20* columns (2023-10, 2023-11 etc.) but not for Voorlaatste* Laatste* and verschil. 

I can't use 

 

| fillnull 20* value="0.0"

 

because that adds a column "20*" and I don't want to use fillnull 2023-10 etc.

Is there a way to do this?

Labels (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The fillnull command does not support wildcards.  Try using foreach as a wrapper around fillnull.

| foreach 20* [fillnull '<<FIELD>>' value="0.0"]

 

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

The fillnull command does not support wildcards.  Try using foreach as a wrapper around fillnull.

| foreach 20* [fillnull '<<FIELD>>' value="0.0"]

 

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

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 at Splunk .conf24 ...

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

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...