<?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 on low average when comparison with other events in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-on-low-average-when-comparison-with-other-events/m-p/422781#M11215</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
 Please help. &lt;/P&gt;

&lt;P&gt;Step1 : Calculate combined average of an event (event name : mytest here) from source file a,b,c.&lt;BR /&gt;
Step 2 : calculate average of mytest event from each soucve file a,b,c individually.&lt;BR /&gt;
Step 3 : compare if there is 50% change when comparing individual average with combined average.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 18:20:36 GMT</pubDate>
    <dc:creator>sahil237888</dc:creator>
    <dc:date>2018-08-21T18:20:36Z</dc:date>
    <item>
      <title>Alert on low average when comparison with other events</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-on-low-average-when-comparison-with-other-events/m-p/422781#M11215</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
 Please help. &lt;/P&gt;

&lt;P&gt;Step1 : Calculate combined average of an event (event name : mytest here) from source file a,b,c.&lt;BR /&gt;
Step 2 : calculate average of mytest event from each soucve file a,b,c individually.&lt;BR /&gt;
Step 3 : compare if there is 50% change when comparing individual average with combined average.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 18:20:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-on-low-average-when-comparison-with-other-events/m-p/422781#M11215</guid>
      <dc:creator>sahil237888</dc:creator>
      <dc:date>2018-08-21T18:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alert on low average when comparison with other events</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-on-low-average-when-comparison-with-other-events/m-p/422782#M11216</link>
      <description>&lt;P&gt;It sounds like you want to use something like &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Eventstats"&gt;eventstats&lt;/A&gt; for what you're trying to accomplish.  Eventstats gives you a way of "zooming out" and giving you metrics from the wider set of events to use for comparison to values in individual events.  &lt;/P&gt;

&lt;P&gt;Try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt;
| stats avg(fieldName) as source_average by eventName, source 
| eventstats avg(source_average) as combined_average by eventName 
| eval pct_diff=abs(100*(combined_average-source_average/combined_average))
| where pct_diff &amp;gt; 50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Aug 2018 19:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-on-low-average-when-comparison-with-other-events/m-p/422782#M11216</guid>
      <dc:creator>erikahanlon</dc:creator>
      <dc:date>2018-08-21T19:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Alert on low average when comparison with other events</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-on-low-average-when-comparison-with-other-events/m-p/422783#M11217</link>
      <description>&lt;P&gt;@erikahanlon,&lt;/P&gt;

&lt;P&gt;Thanks. &lt;BR /&gt;
This gave me clue for implementing this.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 10:30:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-on-low-average-when-comparison-with-other-events/m-p/422783#M11217</guid>
      <dc:creator>sahil237888</dc:creator>
      <dc:date>2018-08-22T10:30:17Z</dc:date>
    </item>
  </channel>
</rss>

