Splunk Search

Fillnull not working on my search

markhvesta
Path Finder

I am trying to get the following query to work, but if there are no InPerson orders, no results are shown for the Channel instead of a row with 0 orders.

 sourcetype="CustomerOrders"
| search (Channel = Store 
OR Channel = InPerson)
| chart count as Count by Channel
|fillnull
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The fillnull command will add values to fields within a row, but does not create rows that don't exist.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...