Splunk Search

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

darshildave
Explorer

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

FrankVl
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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...