<?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 Create alert when same warning keep coming for more than 5 hours in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Create-alert-when-same-warning-keep-coming-for-more-than-5-hours/m-p/35575#M382</link>
    <description>&lt;P&gt;During maintenance we get the same application alert: MON001E on each trx. I want to set up an alert if application alert MON001E keep coming for more than 5 hours.&lt;/P&gt;

&lt;P&gt;The search is to be scheduled to run each hour 24/7&lt;/P&gt;

&lt;P&gt;If this application alert (MON001E) keep coming for more than 5 hours, SPLUNK must give an alert.&lt;/P&gt;

&lt;P&gt;Example:&lt;STRONG&gt;no SPLUNK alert:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;First MON001E at 01:00:00&lt;/P&gt;

&lt;P&gt;Last MON001E at 05:00:00&lt;/P&gt;

&lt;P&gt;Example: &lt;EM&gt;SPLUNK Alert:&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;First MON001E at 02:00&lt;/P&gt;

&lt;P&gt;Last MON001E at 09:00&lt;/P&gt;

&lt;P&gt;SPLUNK must alert at 08:00&lt;/P&gt;

&lt;P&gt;Will this search do the trick?:&lt;/P&gt;

&lt;P&gt;MID=MON001E earliest-6h latest=-1h&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2011 10:11:34 GMT</pubDate>
    <dc:creator>JYTTEJ</dc:creator>
    <dc:date>2011-06-28T10:11:34Z</dc:date>
    <item>
      <title>Create alert when same warning keep coming for more than 5 hours</title>
      <link>https://community.splunk.com/t5/Alerting/Create-alert-when-same-warning-keep-coming-for-more-than-5-hours/m-p/35575#M382</link>
      <description>&lt;P&gt;During maintenance we get the same application alert: MON001E on each trx. I want to set up an alert if application alert MON001E keep coming for more than 5 hours.&lt;/P&gt;

&lt;P&gt;The search is to be scheduled to run each hour 24/7&lt;/P&gt;

&lt;P&gt;If this application alert (MON001E) keep coming for more than 5 hours, SPLUNK must give an alert.&lt;/P&gt;

&lt;P&gt;Example:&lt;STRONG&gt;no SPLUNK alert:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;First MON001E at 01:00:00&lt;/P&gt;

&lt;P&gt;Last MON001E at 05:00:00&lt;/P&gt;

&lt;P&gt;Example: &lt;EM&gt;SPLUNK Alert:&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;First MON001E at 02:00&lt;/P&gt;

&lt;P&gt;Last MON001E at 09:00&lt;/P&gt;

&lt;P&gt;SPLUNK must alert at 08:00&lt;/P&gt;

&lt;P&gt;Will this search do the trick?:&lt;/P&gt;

&lt;P&gt;MID=MON001E earliest-6h latest=-1h&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2011 10:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Create-alert-when-same-warning-keep-coming-for-more-than-5-hours/m-p/35575#M382</guid>
      <dc:creator>JYTTEJ</dc:creator>
      <dc:date>2011-06-28T10:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert when same warning keep coming for more than 5 hours</title>
      <link>https://community.splunk.com/t5/Alerting/Create-alert-when-same-warning-keep-coming-for-more-than-5-hours/m-p/35576#M383</link>
      <description>&lt;P&gt;Try this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MID=MON001E earliest=-6h@h latest=@h | timechart span=1h count | eval count=min(1, count) | stats sum(count) as alertHours
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Send an alert whenever alertHours &amp;gt; 5.&lt;/P&gt;

&lt;P&gt;The search collects six hours of data matching MON001E. The &lt;EM&gt;timechart&lt;/EM&gt; counts how many matches occur in each of the six hours. The &lt;EM&gt;eval&lt;/EM&gt; limits those counts to be either 0 (no matches) or 1 (at least one MON001E). The &lt;EM&gt;stats&lt;/EM&gt; totals the number of hours with at least one MON001E.&lt;/P&gt;

&lt;P&gt;I interpreted your question as, "Send an alert whenever MID=MON001E occurs in six consecutive hours."&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2011 21:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Create-alert-when-same-warning-keep-coming-for-more-than-5-hours/m-p/35576#M383</guid>
      <dc:creator>joelshprentz</dc:creator>
      <dc:date>2011-06-28T21:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert when same warning keep coming for more than 5 hours</title>
      <link>https://community.splunk.com/t5/Alerting/Create-alert-when-same-warning-keep-coming-for-more-than-5-hours/m-p/35577#M384</link>
      <description>&lt;P&gt;great! Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2011 10:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Create-alert-when-same-warning-keep-coming-for-more-than-5-hours/m-p/35577#M384</guid>
      <dc:creator>JYTTEJ</dc:creator>
      <dc:date>2011-06-29T10:53:15Z</dc:date>
    </item>
  </channel>
</rss>

