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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...