<?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: Getting daily count and overall average in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172569#M49463</link>
    <description>&lt;P&gt;Exactly what i was looking for. Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jan 2015 08:54:56 GMT</pubDate>
    <dc:creator>kenvanderheyden</dc:creator>
    <dc:date>2015-01-30T08:54:56Z</dc:date>
    <item>
      <title>Getting daily count and overall average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172566#M49460</link>
      <description>&lt;P&gt;Hello all, &lt;/P&gt;

&lt;P&gt;I'm trying to get the stats of the count of events per day, but also the average.  &lt;/P&gt;

&lt;P&gt;...| stats count by date_mday is fine for getting the count per day&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;...| stats count by date_mday | stats avg(count) gets the overall daily average &lt;/P&gt;

&lt;P&gt;However, I'd like to combine those two into a single table, with one column being the daily total, and the second column being the overall average (which will of course be the same value every day). &lt;/P&gt;

&lt;P&gt;I think I'm just struggling with the syntax...can anyone help please?????&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 08:20:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172566#M49460</guid>
      <dc:creator>Sam2</dc:creator>
      <dc:date>2014-08-06T08:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting daily count and overall average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172567#M49461</link>
      <description>&lt;P&gt;I think you can use eventstats for this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count by date_mday | eventstats avg(count)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Aug 2014 09:35:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172567#M49461</guid>
      <dc:creator>tom_frotscher</dc:creator>
      <dc:date>2014-08-06T09:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting daily count and overall average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172568#M49462</link>
      <description>&lt;P&gt;Yes, easy when you know the command!&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172568#M49462</guid>
      <dc:creator>Sam2</dc:creator>
      <dc:date>2014-08-06T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting daily count and overall average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172569#M49463</link>
      <description>&lt;P&gt;Exactly what i was looking for. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2015 08:54:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172569#M49463</guid>
      <dc:creator>kenvanderheyden</dc:creator>
      <dc:date>2015-01-30T08:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting daily count and overall average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172570#M49464</link>
      <description>&lt;P&gt;index=main host=wrs*  domain=zzz*  | stats count as daycount by date_mday | eventstats avg(daycount)&lt;/P&gt;

&lt;P&gt;when i use run the above command for past  7days...i see different values for daycount which is expected, but  i'm getting same values for avg(daycount)  for all 7 days....can  you explain me how it works...??&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 20:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172570#M49464</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2015-11-25T20:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting daily count and overall average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172571#M49465</link>
      <description>&lt;P&gt;If want to see a moving average try using  | streamstats avg(daycount)&lt;/P&gt;

&lt;P&gt;Breakdown of eventstats vs. streamstats that may help clear up what each one does&lt;BR /&gt;
&lt;A href="http://blogs.splunk.com/2014/04/01/search-command-stats-eventstats-and-streamstats-2/"&gt;http://blogs.splunk.com/2014/04/01/search-command-stats-eventstats-and-streamstats-2/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 18:48:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172571#M49465</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-01-08T18:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting daily count and overall average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172572#M49466</link>
      <description>&lt;P&gt;Thanks for the streamstats tip&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 13:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/172572#M49466</guid>
      <dc:creator>khubyarb</dc:creator>
      <dc:date>2016-06-23T13:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting daily count and overall average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/566973#M197580</link>
      <description>&lt;P&gt;Hello Sir,&lt;/P&gt;&lt;P&gt;I am trying to fetch count of errors in application logs on daily basis and average count of errors in past 7 days.&lt;/P&gt;&lt;P&gt;I tried using the following: -&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=** &amp;lt;Search condition&amp;gt; |stats count by error |streamstats avg(count)&lt;/LI-CODE&gt;&lt;P&gt;I get three columns: error, count, avg(count). I am able to follow the results obtained in first two columns, but unable to understand how the values are getting calculated and displayed for avg(count). Thus, need your help to comprehend the same.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 13:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-daily-count-and-overall-average/m-p/566973#M197580</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2021-09-14T13:17:18Z</dc:date>
    </item>
  </channel>
</rss>

