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!

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 ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...