Splunk Search

Stats list removes empty strings in the search GUI

nick405060
Motivator
| makeresults | eval a="1" | append [| makeresults | eval b="2"] | fillnull value="" | stats list(a)

vs.

| makeresults | eval a="1" | append [| makeresults | eval b="2"] | fillnull value="0" | stats list(a)

... shows only one result, even though

| makeresults | eval a="1" | append [| makeresults | eval b="2"] | fillnull value="" | stats list(a) AS z | eval w=mvcount(z) | table w

... counts 2. Isn't this the whole point of using fillnull? What's the most elegant workaround? This seems to be super dangerous and misleading

0 Karma

nick405060
Motivator

Per @dmarling a workaround to this bug is to fillnull with alt+255

0 Karma
Get Updates on the Splunk Community!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...