Splunk Search

Is it possible to use fillnull for fieldnames with a specific pattern?

HeinzWaescher
Motivator

Hi,

is it possible to use fillnull for fields with a specific pattern? Wildcards are not working, but I want to avoid using fillnull for each and every field.

For example I would like to fillnull all fieldnames that contain "ABC".

Cheers
Heinz

0 Karma
1 Solution

somesoni2
Revered Legend

Try this workaround

...| foreach *ABC* [eval "<<FIELD>>"=coalesce('<<FIELD>>',"YourDefaultValueHere") ]

View solution in original post

somesoni2
Revered Legend

Try this workaround

...| foreach *ABC* [eval "<<FIELD>>"=coalesce('<<FIELD>>',"YourDefaultValueHere") ]

HeinzWaescher
Motivator

works fine, thanks a lot

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...