Splunk Search

Help on basic questions about a by clause

jip31
Motivator

hi

sorry for this question but I have difficulties to understand why a by clause with 3 conditions retrieve less events than a clause with 2 events

Is the difference is on the field _time?

 

 

| stats count as PbPerf by _time toto tutu
| stats count as PbPerf by _time toto

 

 

 thanks

Tags (1)
0 Karma
1 Solution

smurf
Communicator

Hi,

fields in the by clause cannot be empty. If it is empty, it does not show up in the results.

Try using fillnull before running the stats command like this:

| fillnull tutu value="n/a"

 

View solution in original post

0 Karma

smurf
Communicator

Hi,

fields in the by clause cannot be empty. If it is empty, it does not show up in the results.

Try using fillnull before running the stats command like this:

| fillnull tutu value="n/a"

 

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...