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!

How to Get Started with Splunk Data Management Pipeline Builders (Edge Processor & ...

If you want to gain full control over your growing data volumes, check out Splunk’s Data Management pipeline ...

Out of the Box to Up And Running - Streamlined Observability for Your Cloud ...

  Tech Talk Streamlined Observability for Your Cloud Environment Register    Out of the Box to Up And Running ...

Splunk Smartness with Brandon Sternfield | Episode 3

Hello and welcome to another episode of "Splunk Smartness," the interview series where we explore the power of ...