<?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: Need to get stats count by day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131321#M35807</link>
    <description>&lt;P&gt;perfect just what I was looking for thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2016 20:35:50 GMT</pubDate>
    <dc:creator>bcronrath</dc:creator>
    <dc:date>2016-10-10T20:35:50Z</dc:date>
    <item>
      <title>Need to get stats count by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131316#M35802</link>
      <description>&lt;P&gt;I need a daily count of events of a particular type per day for an entire month&lt;/P&gt;

&lt;P&gt;June1  - 20 events&lt;BR /&gt;
June2 -  55 events&lt;BR /&gt;
and so on till June 30&lt;/P&gt;

&lt;P&gt;available fields  is  websitename  , just need occurrences for that website for a month&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2015 13:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131316#M35802</guid>
      <dc:creator>shellnight</dc:creator>
      <dc:date>2015-05-31T13:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get stats count by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131317#M35803</link>
      <description>&lt;P&gt;index=%yourIndexHere% websiteName=* | timechart span=1d count by websiteName limit=0&lt;/P&gt;

&lt;P&gt;This should work..brings back all events with "websiteName" present, then counts them per day with no limit on how any sites it will count for.&lt;/P&gt;

&lt;P&gt;Be sure to add any further criteria to identify your events before the pipe to timechart. ( ie "LOGIN FAIL")&lt;/P&gt;

&lt;P&gt;you could also use the bin command with stats command, but timechart does both anyhow and this gets you the visualization.&lt;/P&gt;

&lt;P&gt;*I threw in the limit=0 in case you have a large amount of websiteNames. The default limit is 10 everything outside 10 would go to "OTHER".&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/Timechart"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/Timechart&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/CommonStatsFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2015 14:01:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131317#M35803</guid>
      <dc:creator>n00badmin</dc:creator>
      <dc:date>2015-05-31T14:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get stats count by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131318#M35804</link>
      <description>&lt;P&gt;To obtain the number of daily events that matches your search criteria for the month of June 2015 per websitename, try this:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;your search criteria&lt;/EM&gt;  websitename=* earliest=”6/1/2015:00:00:00” latest=”6/30/2015:23:59:59” | timechart span=1d count by websitename limit=0&lt;/P&gt;

&lt;P&gt;By using limit=0 you will return all values (default is limit=10)&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2015 22:11:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131318#M35804</guid>
      <dc:creator>jvarmazis_splun</dc:creator>
      <dc:date>2015-05-31T22:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get stats count by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131319#M35805</link>
      <description>&lt;P&gt;yep this would work too..my suggestion would rely in the time picker to set the time period for the search&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2015 23:02:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131319#M35805</guid>
      <dc:creator>n00badmin</dc:creator>
      <dc:date>2015-05-31T23:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get stats count by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131320#M35806</link>
      <description>&lt;P&gt;if you want stats. not timechart. Bucket the results per day. then count per _time.&lt;/P&gt;

&lt;P&gt;mysearch |bucket _time span=day  |stats count by _time&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2015 05:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131320#M35806</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-06-01T05:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get stats count by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131321#M35807</link>
      <description>&lt;P&gt;perfect just what I was looking for thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 20:35:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-get-stats-count-by-day/m-p/131321#M35807</guid>
      <dc:creator>bcronrath</dc:creator>
      <dc:date>2016-10-10T20:35:50Z</dc:date>
    </item>
  </channel>
</rss>

