<?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: Setting Rolling seven day average alert with current day data in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651645#M1088</link>
    <description>&lt;P&gt;That's correct &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jul 2023 13:12:58 GMT</pubDate>
    <dc:creator>Akdeveloper</dc:creator>
    <dc:date>2023-07-23T13:12:58Z</dc:date>
    <item>
      <title>Setting Rolling seven day average alert with current day data</title>
      <link>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651630#M1084</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to setup an alert and notify by email, when count of last 3hrs is greater than rolling average of last 7 days using the below query. Query is working fine but in the alert is not working/not getting triggered I tried as below Alert Config&lt;/P&gt;&lt;P&gt;Trigger conditions in alert Screen are, Trigger alert when ,Custom option ,search alert==true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query:&lt;/P&gt;&lt;P&gt;sourcetype="cloudwatch" index=***** earliest=-6d@d latest=@d&lt;BR /&gt;|bucket _time span=1d&lt;BR /&gt;|stats count by _time&lt;BR /&gt;|stats avg(count) as SevenDayAverage&lt;BR /&gt;|appendcols [search sourcetype="cloudwatch" index=*****&lt;BR /&gt;|stats count as IndividualCount]&lt;BR /&gt;|eval alert = if((IndividualCount.SevenDayAverage),"true","false")&lt;BR /&gt;SevenDayAverage IndividualCount alert&lt;BR /&gt;5 1139 true&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2023 22:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651630#M1084</guid>
      <dc:creator>Akdeveloper</dc:creator>
      <dc:date>2023-07-22T22:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Rolling seven day average alert with current day data</title>
      <link>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651636#M1085</link>
      <description>&lt;P&gt;It is not clear what your if condition is supposed to be doing (was there a typo?), nor indeed what your search is trying to find as you seem to be trying to compare an average daily count with a 3 hour count?&lt;/P&gt;&lt;P&gt;Also, this is potentially going to be very slow - have you considered using metasearch or summary indexes?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 07:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651636#M1085</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-23T07:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Rolling seven day average alert with current day data</title>
      <link>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651640#M1086</link>
      <description>&lt;P&gt;Sorry there was typo,this is correct if currently,&lt;SPAN&gt;if((IndividualCount&amp;gt;SevenDayAverage),"true","false").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Reg the query I am trying to compare counts in last three hours with seven day average count,if true then alert.&lt;/P&gt;&lt;P&gt;I didn't tried metasearches,will give a try too&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 11:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651640#M1086</guid>
      <dc:creator>Akdeveloper</dc:creator>
      <dc:date>2023-07-23T11:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Rolling seven day average alert with current day data</title>
      <link>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651641#M1087</link>
      <description>&lt;P&gt;So you are trying to alert if a 3 hour count is greater than the average for a whole day over the last 6 days?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 11:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651641#M1087</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-23T11:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Rolling seven day average alert with current day data</title>
      <link>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651645#M1088</link>
      <description>&lt;P&gt;That's correct &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 13:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651645#M1088</guid>
      <dc:creator>Akdeveloper</dc:creator>
      <dc:date>2023-07-23T13:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Rolling seven day average alert with current day data</title>
      <link>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651647#M1089</link>
      <description>&lt;P&gt;Which version of Splunk are you running as there have been problems with custom alert conditions?&lt;/P&gt;&lt;P&gt;A way to work around this is to add a where command to your search and then alert if there are any results e.g.:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where alert="true"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 23 Jul 2023 14:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Setting-Rolling-seven-day-average-alert-with-current-day-data/m-p/651647#M1089</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-23T14:34:32Z</dc:date>
    </item>
  </channel>
</rss>

