<?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 to find the average count of events for a timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115135#M30456</link>
    <description>&lt;P&gt;Have you looked at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/X11"&gt;X11&lt;/A&gt; ? Or &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Trendline"&gt;trendline&lt;/A&gt; ? Trendline has exponential moving averages as well as weighted moving averages.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2014 18:00:47 GMT</pubDate>
    <dc:creator>aljohnson_splun</dc:creator>
    <dc:date>2014-11-11T18:00:47Z</dc:date>
    <item>
      <title>How to find the average count of events for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115133#M30454</link>
      <description>&lt;P&gt;This sounds so easy but I can't seem to figure it out. Or maybe it's just ridiculous and there is a better way.&lt;/P&gt;

&lt;P&gt;So I have &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=iis | timechart count by cs_uri_stem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And that's great, but what if I want to smooth out the timechart with an average? Or maybe just plot the deltas? Doing avg(count(_raw)) doesn't cut the mustard. Basically I want to try and stomp down the occasional spikes (which yes need attention in some circumstances) and just get an idea if hitcount is trending up. Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115133#M30454</guid>
      <dc:creator>robertlabrie</dc:creator>
      <dc:date>2014-11-10T17:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average count of events for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115134#M30455</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/CommonStatsFunctions"&gt;Percentiles, variance, population variance, sum of squares, and standard deviation all come to mind.&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There is also a &lt;CODE&gt;delta&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Delta"&gt;command&lt;/A&gt; if that is really what you want. &lt;/P&gt;

&lt;P&gt;Here are some similar questions that might help you craft your search:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/141302/plot-rate-of-change.html"&gt;http://answers.splunk.com/answers/141302/plot-rate-of-change.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/102969/display-standard-deviation-stdev-percentage.html"&gt;http://answers.splunk.com/answers/102969/display-standard-deviation-stdev-percentage.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 19:41:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115134#M30455</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-10T19:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average count of events for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115135#M30456</link>
      <description>&lt;P&gt;Have you looked at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/X11"&gt;X11&lt;/A&gt; ? Or &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Trendline"&gt;trendline&lt;/A&gt; ? Trendline has exponential moving averages as well as weighted moving averages.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 18:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115135#M30456</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-11T18:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average count of events for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115136#M30457</link>
      <description>&lt;P&gt;|  timechart span=1h count as events | eventstats sum(events) as z| eventstats count(events) as y |eval average=round(z/y,2)|fields &lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 18:41:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115136#M30457</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-04-11T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average count of events for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115137#M30458</link>
      <description>&lt;P&gt;|  timechart span=1h count as events | eventstats sum(events) as z| eventstats count(events) as y |eval average=round(z/y,2)|fields &lt;/P&gt;

&lt;P&gt;Ultimately the average = sum/count&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 18:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-count-of-events-for-a-timechart/m-p/115137#M30458</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-04-11T18:43:12Z</dc:date>
    </item>
  </channel>
</rss>

