<?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: Rolling Averages in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247663#M176474</link>
    <description>&lt;P&gt;use &lt;CODE&gt;|streamstats&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Streamstats"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Streamstats&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;it's great for rolling averages. you can do multiple streamstats, one for the 30, 60, and 90 day windows. &lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2016 12:48:24 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2016-10-14T12:48:24Z</dc:date>
    <item>
      <title>Rolling Averages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247662#M176473</link>
      <description>&lt;P&gt;I am having alot of trouble setting up rolling averages in Splunk. I would love to be able to overlay a 30, 60, 90 day trend line over my current trend line. this seems like a pretty standard function in analysis so I am sure im over looking some simple function? Is there documentation or guidance on how to set up rolling averages?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 12:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247662#M176473</guid>
      <dc:creator>justx001</dc:creator>
      <dc:date>2016-10-14T12:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Averages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247663#M176474</link>
      <description>&lt;P&gt;use &lt;CODE&gt;|streamstats&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Streamstats"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Streamstats&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;it's great for rolling averages. you can do multiple streamstats, one for the 30, 60, and 90 day windows. &lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 12:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247663#M176474</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2016-10-14T12:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Averages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247664#M176475</link>
      <description>&lt;P&gt;You'll want to use streamstats to accomplish this&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Streamstats"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Streamstats&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try something like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;your base search&amp;gt; | timechart count span=30d | streamstats window=20 avg(count) as avgCount | fields _time avgCount [search &amp;lt;your base search&amp;gt; | timechart count span=60d | streamstats window=20 avg(count) as avgCount | fields _time avgCount]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 13:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247664#M176475</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-10-14T13:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Averages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247665#M176476</link>
      <description>&lt;P&gt;Thank you very much for the quick reply, the reference and the example&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 13:35:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247665#M176476</guid>
      <dc:creator>justx001</dc:creator>
      <dc:date>2016-10-14T13:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Averages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247666#M176477</link>
      <description>&lt;P&gt;As an addendum to this fabulous answer, @justx001 you might want to check out the trendline command as well, it has weighted and exponential moving averages as well.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
| ... base search &lt;BR /&gt;
| timechart count span=1d&lt;BR /&gt;
| trendline sma10(count) as ten_day_simple_moving_average, wma30(count) as month_weighted_moving_average, ema7(count) as week_exponential_moving_average&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 18:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rolling-Averages/m-p/247666#M176477</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2016-10-14T18:44:47Z</dc:date>
    </item>
  </channel>
</rss>

