Splunk Search

How to use group by aggregate function in 'tstats' query when field value in some events in null??


I want to use group by aggregate function with a field called "field1". Some events in my data donot consists of this field. (i.e field1 = null). Now when i try to use group by with this field the events where field1=null are skipped and not shown in our output.
How to use the group by function with fields where the coverage of the field is not 100%?

0 Karma

Ultra Champion

tstats works on the accelerated data model, right? Then you probably need to adjust your acceleration searches to ensure those fields are never null. So basically include the fillnull in the acceleration search and rebuild the data model.

0 Karma
Get Updates on the Splunk Community!

Platform Newsletter Highlights | March 2023

 March 2023 | Check out the latest and greatestIntroducing Splunk Edge Processor, simplified data ...

Enterprise Security Content Updates (ESCU) - New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 3 releases of new content via the Enterprise ...

Thought Leaders are Validating Your Hard Work and Training Rigor

As a Splunk enthusiast and member of the Splunk Community, you are one of thousands who recognize the value of ...