<?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 how to get data as per _time when count is 0 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-data-as-per-time-when-count-is-0/m-p/548575#M155610</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=dummy &amp;lt;mySearchCondition&amp;gt;| search response_code1!=200| stats count&lt;/LI-CODE&gt;&lt;P&gt;when i search for this query i get output as 0 in count column. but when i try this query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dummy &amp;lt;mysearchCondition&amp;gt; | bin _time span=1d |eval Time=strftime(_time , "%d/%m/%Y %H:%M")| search response_code1!=200| stats count by Time&lt;/LI-CODE&gt;&lt;P&gt;expected ans for this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Time&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;2021-04-20 04:36&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm not able to see any output. what to do?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 12:07:56 GMT</pubDate>
    <dc:creator>Learner</dc:creator>
    <dc:date>2021-04-20T12:07:56Z</dc:date>
    <item>
      <title>how to get data as per _time when count is 0</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-data-as-per-time-when-count-is-0/m-p/548575#M155610</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=dummy &amp;lt;mySearchCondition&amp;gt;| search response_code1!=200| stats count&lt;/LI-CODE&gt;&lt;P&gt;when i search for this query i get output as 0 in count column. but when i try this query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dummy &amp;lt;mysearchCondition&amp;gt; | bin _time span=1d |eval Time=strftime(_time , "%d/%m/%Y %H:%M")| search response_code1!=200| stats count by Time&lt;/LI-CODE&gt;&lt;P&gt;expected ans for this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Time&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;2021-04-20 04:36&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm not able to see any output. what to do?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 12:07:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-data-as-per-time-when-count-is-0/m-p/548575#M155610</guid>
      <dc:creator>Learner</dc:creator>
      <dc:date>2021-04-20T12:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to get data as per _time when count is 0</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-data-as-per-time-when-count-is-0/m-p/548585#M155616</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bin _time span=1d&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Snaps all values of _time to the start of day i.e. 00:00 so you will not see 04:36. Also, the time format you seem to be expecting is not the format you have used for Time. Apart from that, you should get counts for the days present in your search, except when you have removed all the events for any particular day. The stats are grouped by Time and there are no values for Time once you have filtered out all the response_code1=200&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 12:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-data-as-per-time-when-count-is-0/m-p/548585#M155616</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-20T12:55:51Z</dc:date>
    </item>
  </channel>
</rss>

