<?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: Count By Date in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69147#M17357</link>
    <description>&lt;P&gt;Convert _time to a date in the needed format.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;* | convert timeformat="%Y-%m-%d" ctime(_time) AS date  | stats count by date&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Convert"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Convert&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2013 22:52:13 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2013-06-19T22:52:13Z</dc:date>
    <item>
      <title>Count By Date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69146#M17356</link>
      <description>&lt;P&gt;I have a search created, and want to get a count of the events returned by date.  I know the date and time is stored in &lt;EM&gt;time, but I dont want to Count By _time, because I only care about the date, not the time.  Is there a way to get the date out of _time (I tried to build a rex, but it didnt work..)&lt;BR /&gt;
I also tried to do a count based on date_mday, but when adding that I got no results returned (nor did I get any results when I just added something like date_mday &amp;gt; 1 to the search string) - seems like the date&lt;/EM&gt; fields are not populated for me (in this case, these are events from the Windows System log.)&lt;/P&gt;

&lt;P&gt;Any suggestions on how to count by date?&lt;/P&gt;

&lt;P&gt;thankx.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:08:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69146#M17356</guid>
      <dc:creator>gn694</dc:creator>
      <dc:date>2020-09-28T14:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count By Date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69147#M17357</link>
      <description>&lt;P&gt;Convert _time to a date in the needed format.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;* | convert timeformat="%Y-%m-%d" ctime(_time) AS date  | stats count by date&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Convert"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Convert&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2013 22:52:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69147#M17357</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-06-19T22:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count By Date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69148#M17358</link>
      <description>&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2013 23:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69148#M17358</guid>
      <dc:creator>gn694</dc:creator>
      <dc:date>2013-06-19T23:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count By Date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69149#M17359</link>
      <description>&lt;UL&gt;
&lt;LI&gt;| eval date=strftime(_time, "%y-%m-%d") 
| stats count by date&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 20 Jun 2013 12:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69149#M17359</guid>
      <dc:creator>idaaa</dc:creator>
      <dc:date>2013-06-20T12:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count By Date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69150#M17360</link>
      <description>&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 13:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/69150#M17360</guid>
      <dc:creator>hoanlq</dc:creator>
      <dc:date>2017-02-09T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count By Date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/537912#M152070</link>
      <description>&lt;P&gt;"%F" is equivalent to "%Y-%m-%d"&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 20:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-By-Date/m-p/537912#M152070</guid>
      <dc:creator>dkhiggs</dc:creator>
      <dc:date>2021-01-29T20:31:34Z</dc:date>
    </item>
  </channel>
</rss>

