<?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 Alert when sample is 2 standard deviations from moving average in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-when-sample-is-2-standard-deviations-from-moving-average/m-p/132829#M2116</link>
    <description>&lt;P&gt;I am trying to develop an anomaly detector:&lt;/P&gt;

&lt;P&gt;Search data...&lt;BR /&gt;
Determine 95 percentile (or 2 std deviations from average) of last 30 min.&lt;BR /&gt;
Determine the avg of the last 1 min.&lt;/P&gt;

&lt;P&gt;Alert condition: avg(1min) &amp;gt; perc95(30min)&lt;/P&gt;

&lt;P&gt;It would also be nice to be able to use a single graph of perc95(30min) and avg(1min) over the same multi-hour timeline.&lt;/P&gt;

&lt;P&gt;I can get the data I want as separate series, but have not been able to integrate everything due to having 2 different sampling intervals.  Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2015 22:35:03 GMT</pubDate>
    <dc:creator>jdamanpour</dc:creator>
    <dc:date>2015-04-09T22:35:03Z</dc:date>
    <item>
      <title>Alert when sample is 2 standard deviations from moving average</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-sample-is-2-standard-deviations-from-moving-average/m-p/132829#M2116</link>
      <description>&lt;P&gt;I am trying to develop an anomaly detector:&lt;/P&gt;

&lt;P&gt;Search data...&lt;BR /&gt;
Determine 95 percentile (or 2 std deviations from average) of last 30 min.&lt;BR /&gt;
Determine the avg of the last 1 min.&lt;/P&gt;

&lt;P&gt;Alert condition: avg(1min) &amp;gt; perc95(30min)&lt;/P&gt;

&lt;P&gt;It would also be nice to be able to use a single graph of perc95(30min) and avg(1min) over the same multi-hour timeline.&lt;/P&gt;

&lt;P&gt;I can get the data I want as separate series, but have not been able to integrate everything due to having 2 different sampling intervals.  Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2015 22:35:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-sample-is-2-standard-deviations-from-moving-average/m-p/132829#M2116</guid>
      <dc:creator>jdamanpour</dc:creator>
      <dc:date>2015-04-09T22:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when sample is 2 standard deviations from moving average</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-sample-is-2-standard-deviations-from-moving-average/m-p/132830#M2117</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_combined earliest=-1w
| eval halfanhour = _time
| bucket halfanhour span=30m
| eval min = _time
| bucket min span=1m
| eventstats p95(bytes) as ninety_five by halfanhour
| eventstats mean(bytes) as minute_average by min
| timechart span=1m last(ninety_five) as "95th Percentile", last(minute_average) as "Average (minute)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From this &lt;A href="http://answers.splunk.com/answers/108622/timechart-with-two-different-spans.html"&gt;answer&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;Make sure you set gaps to connected under format.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/300iD63261491929B19F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2015 23:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-sample-is-2-standard-deviations-from-moving-average/m-p/132830#M2117</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-04-09T23:43:06Z</dc:date>
    </item>
  </channel>
</rss>

