Splunk Enterprise Security

In Splunk Enterprise Security, how do you Include empty results in a tstats search?

yemyslf
Path Finder

I am using tstats to search for some IP addresses. I'm trying to return the count of those IP addresses, which is easy enough. I'd also like to have the IP listed in my search results even if no items were found.

Here is an example of my search using fillnull, but it's only showing the IPs that are found.

Any suggestions on how to accomplish this?

  | tstats summariesonly=true  allow_old_summaries=true count from  datamodel=Web where  sourcetype=mysource AND          (Web.src = 192.168.1.2  OR Web.src= 192.168.2.3  OR 192.168.3.4) by Web.src  
| fillnull value="0"  
| rename "Web.*"   as *
0 Karma

woodcock
Esteemed Legend

This is the Sentinel Search problem discussed (with solution) here:

https://conf.splunk.com/session/2015/conf2015-LookupTalk.pdf

0 Karma
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 ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...