Splunk Search

The fillnull_value option in tstats command

lucas4394
Path Finder

According to Splunk document in "tstats" command, the optional argument, fillnull_value, is available for my Splunk version, 7.2; however, this optional argument doesn't seem working at all. I got an error message: "... The argument 'fillnull_value=NA' is invalid". Does anyone have any clues? Thanks.

| tstats summariesonly=true fillnull_value="NA" count from datamodel=Email.All_Email where * by All_Email.src_user
0 Karma

aberkow
Builder

I just played around with it for awhile - I had initially thought it was because you had "count" and that can never return null, but I tried values as well and that yielded nothing either. If no one else can answer, you have the workaround of adding on line 2 | fillnull value="NA", and should probably open a support ticket. Also, there are no examples of it in usage here: https://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Tstats#Examples which is a bit bothersome.

0 Karma

rvaglid
Explorer

According to the docs this option to `tstats` were introduced in 8.0.0. 
I just recently discovered myself. 🙂

Cheers,
Rolf

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...