<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: stats min(count) not 0 if value never occurs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/stats-min-count-not-0-if-value-never-occurs/m-p/301769#M90863</link>
    <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;foo
 | timechart span=60s  count 
 | stats min(count) as minCntFoo
| appendpipe [ stats count | eval minCntFoo=0 | where count==0 |table minCntFoo]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the appendpipe stats command will count the number of events that come back and only bring back results if there are 0 events from the base query.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2017 17:47:39 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-08-25T17:47:39Z</dc:date>
    <item>
      <title>stats min(count) not 0 if value never occurs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-min-count-not-0-if-value-never-occurs/m-p/301768#M90862</link>
      <description>&lt;P&gt;If I have the following query &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;foo
| timechart span=60s  count 
| stats min(count) as minCntFoo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but foo never occurs, is there a way of setting minCntFoo=0 instead of now, where I get "No results found."?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 17:40:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-min-count-not-0-if-value-never-occurs/m-p/301768#M90862</guid>
      <dc:creator>viggor</dc:creator>
      <dc:date>2017-08-25T17:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: stats min(count) not 0 if value never occurs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-min-count-not-0-if-value-never-occurs/m-p/301769#M90863</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;foo
 | timechart span=60s  count 
 | stats min(count) as minCntFoo
| appendpipe [ stats count | eval minCntFoo=0 | where count==0 |table minCntFoo]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the appendpipe stats command will count the number of events that come back and only bring back results if there are 0 events from the base query.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 17:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-min-count-not-0-if-value-never-occurs/m-p/301769#M90863</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-08-25T17:47:39Z</dc:date>
    </item>
  </channel>
</rss>

