<?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: How can I display zero-value/empty time when using stats? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-display-zero-value-empty-time-when-using-stats/m-p/363524#M66228</link>
    <description>&lt;P&gt;Use &lt;CODE&gt;timechart&lt;/CODE&gt; (which creates empty slots by default), like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*
| timechart span=1d count(eval(searchmatch("(match1)"))) AS match1 count(eval(searchmatch("(match2)"))) AS match2
| rename _time AS Time
| fieldformat Time=strftime(Time, "%m/%d/%y")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Aug 2017 17:42:33 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-08-11T17:42:33Z</dc:date>
    <item>
      <title>How can I display zero-value/empty time when using stats?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-display-zero-value-empty-time-when-using-stats/m-p/363522#M66226</link>
      <description>&lt;P&gt;Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | bin span=1d _time | convert ctime(_time) as Time timeformat=%m/%d/%y |stats  count(eval(searchmatch("(match1)")))  count(eval(searchmatch("(match2)"))) by Time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The query doesn't give me the days that have zero value.&lt;/P&gt;

&lt;P&gt;How can I get the stats for every day? And it should show me &lt;STRONG&gt;zero&lt;/STRONG&gt; if it is zero on that particular day.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 16:47:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-display-zero-value-empty-time-when-using-stats/m-p/363522#M66226</guid>
      <dc:creator>knarayana</dc:creator>
      <dc:date>2017-08-11T16:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I display zero-value/empty time when using stats?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-display-zero-value-empty-time-when-using-stats/m-p/363523#M66227</link>
      <description>&lt;P&gt;index=* | timechart span=1d count(eval(searchmatch("(match1)"))) count(eval(searchmatch("(match2)"))) | eval _time=strftime(_time,"%m/%d/%Y") &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-display-zero-value-empty-time-when-using-stats/m-p/363523#M66227</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I display zero-value/empty time when using stats?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-display-zero-value-empty-time-when-using-stats/m-p/363524#M66228</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;timechart&lt;/CODE&gt; (which creates empty slots by default), like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*
| timechart span=1d count(eval(searchmatch("(match1)"))) AS match1 count(eval(searchmatch("(match2)"))) AS match2
| rename _time AS Time
| fieldformat Time=strftime(Time, "%m/%d/%y")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Aug 2017 17:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-display-zero-value-empty-time-when-using-stats/m-p/363524#M66228</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-11T17:42:33Z</dc:date>
    </item>
  </channel>
</rss>

