<?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: How to get an alert only when the count is continuously 0 for consecutive 5 minutes? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-get-an-alert-only-when-the-count-is-continuously-0-for/m-p/401920#M7088</link>
    <description>&lt;P&gt;So, schedule a search that runs every 10 minutes that does this:&lt;BR /&gt;
&lt;CODE&gt;index=main &lt;BR /&gt;
| timechart span=1m  dc(src_ip) as testCount&lt;BR /&gt;
| eval error=IF(testCount&amp;gt;0, 1, 0)&lt;BR /&gt;
| streamstats window=5 sum(error) as errorSample &lt;BR /&gt;
| eval alert=IF(errorSample&amp;gt;=5,"ALERT","OKAY")&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 18:31:37 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2018-08-14T18:31:37Z</dc:date>
    <item>
      <title>How to get an alert only when the count is continuously 0 for consecutive 5 minutes?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-an-alert-only-when-the-count-is-continuously-0-for/m-p/401919#M7087</link>
      <description>&lt;P&gt;I want to run a query for every 10 minutes timeframe. But it should alert only when count is continuously 0 for consecutive 5 minutes.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:16:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-an-alert-only-when-the-count-is-continuously-0-for/m-p/401919#M7087</guid>
      <dc:creator>sahil237888</dc:creator>
      <dc:date>2018-08-14T18:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an alert only when the count is continuously 0 for consecutive 5 minutes?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-an-alert-only-when-the-count-is-continuously-0-for/m-p/401920#M7088</link>
      <description>&lt;P&gt;So, schedule a search that runs every 10 minutes that does this:&lt;BR /&gt;
&lt;CODE&gt;index=main &lt;BR /&gt;
| timechart span=1m  dc(src_ip) as testCount&lt;BR /&gt;
| eval error=IF(testCount&amp;gt;0, 1, 0)&lt;BR /&gt;
| streamstats window=5 sum(error) as errorSample &lt;BR /&gt;
| eval alert=IF(errorSample&amp;gt;=5,"ALERT","OKAY")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-an-alert-only-when-the-count-is-continuously-0-for/m-p/401920#M7088</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2018-08-14T18:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an alert only when the count is continuously 0 for consecutive 5 minutes?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-an-alert-only-when-the-count-is-continuously-0-for/m-p/401921#M7089</link>
      <description>&lt;P&gt;After 5 , it is not restting the counter.&lt;BR /&gt;
The counter should be 0 after 5.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 19:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-an-alert-only-when-the-count-is-continuously-0-for/m-p/401921#M7089</guid>
      <dc:creator>sahil237888</dc:creator>
      <dc:date>2018-08-16T19:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an alert only when the count is continuously 0 for consecutive 5 minutes?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-an-alert-only-when-the-count-is-continuously-0-for/m-p/401922#M7090</link>
      <description>&lt;P&gt;_Time              Count    Counter&lt;BR /&gt;
17-08-18 8:09   100    0&lt;BR /&gt;
17-08-18 8:10   500    0&lt;BR /&gt;
17-08-18 8:11   81     0&lt;BR /&gt;
17-08-18 8:12   20     0&lt;BR /&gt;
17-08-18 8:13   56     0&lt;BR /&gt;
17-08-18 8:14   0      1&lt;BR /&gt;
17-08-18 8:15   0      2&lt;BR /&gt;
17-08-18 8:16   0      3&lt;BR /&gt;
17-08-18 8:17   0      4&lt;BR /&gt;
17-08-18 8:18   0      5&lt;BR /&gt;
17-08-18 8:19   789    0&lt;BR /&gt;
17-08-18 8:20   5      0&lt;BR /&gt;
17-08-18 8:21   0      1&lt;BR /&gt;
17-08-18 8:22   0      2&lt;BR /&gt;
17-08-18 8:23   0      3&lt;BR /&gt;
17-08-18 8:24   86     0&lt;/P&gt;

&lt;P&gt;Here basically the query should check within 10 minutes timeframe.&lt;BR /&gt;
and If there is continuously 0 in continuous 5 minutes, It should increase counter value to +1 with every occurrence of 0 continuously. The counter will be reset to 0 if there is no 0 in count column.&lt;/P&gt;

&lt;P&gt;and should send alert that there is continuous 0 in continuous 5 minutes (it should also show the result at the time the count was 0.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 13:50:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-an-alert-only-when-the-count-is-continuously-0-for/m-p/401922#M7090</guid>
      <dc:creator>sahil237888</dc:creator>
      <dc:date>2018-08-17T13:50:13Z</dc:date>
    </item>
  </channel>
</rss>

