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 *
This is the Sentinel Search
problem discussed (with solution) here:
https://conf.splunk.com/session/2015/conf2015-LookupTalk.pdf