<?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 trigger an alert when status field is true for more than 5 min no matter the amount of event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-trigger-an-alert-when-status-field-is-true-for-more-than/m-p/696426#M236690</link>
    <description>&lt;P&gt;Your data does not match your description - the Status field appears to be either "up" or "Down" not "true" - because of this, it is not clear whether you want an alert if there has been a period of at least 5 minutes of Status being "Down" or Status being "up" anywhere within the time period of the search - please clarify your requirement&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2024 23:06:43 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-08-15T23:06:43Z</dc:date>
    <item>
      <title>How to trigger an alert when status field is true for more than 5 min no matter the amount of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trigger-an-alert-when-status-field-is-true-for-more-than/m-p/696420#M236689</link>
      <description>&lt;P&gt;I have search query, if the Status is field is true for more than 5 min, I need to trigger an alert&amp;nbsp; no matter the Event count result. if its within the timeframe then fire.&lt;BR /&gt;Mabey even have it search for every 1minute.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;for example&amp;nbsp; this should not fire an Alert because it recovered within the 5 min&lt;/P&gt;&lt;P&gt;1:00 Status = Down&amp;nbsp; &amp;nbsp;(event result count X5)&lt;BR /&gt;1:03 Status = up&lt;BR /&gt;1:07 Status = Down&amp;nbsp; (event count X3)&lt;BR /&gt;1:10 Status = up&lt;BR /&gt;1:13 Status = up&lt;BR /&gt;1:16 Status = up&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;for example&amp;nbsp; this should&amp;nbsp; fire an Alert&amp;nbsp;&lt;/P&gt;&lt;P&gt;1:00 Status = Down&amp;nbsp;&amp;nbsp;(event result count X1)&lt;BR /&gt;1:03 Status = Down&amp;nbsp;(event result count X1)&lt;BR /&gt;1:07 Status = Down&amp;nbsp;(event result count X1)&lt;BR /&gt;1:10 Status = up&lt;BR /&gt;1:13 Status = up&lt;BR /&gt;1:16 Status = up&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 21:48:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trigger-an-alert-when-status-field-is-true-for-more-than/m-p/696420#M236689</guid>
      <dc:creator>Cheng2Ready</dc:creator>
      <dc:date>2024-08-15T21:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when status field is true for more than 5 min no matter the amount of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trigger-an-alert-when-status-field-is-true-for-more-than/m-p/696426#M236690</link>
      <description>&lt;P&gt;Your data does not match your description - the Status field appears to be either "up" or "Down" not "true" - because of this, it is not clear whether you want an alert if there has been a period of at least 5 minutes of Status being "Down" or Status being "up" anywhere within the time period of the search - please clarify your requirement&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 23:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trigger-an-alert-when-status-field-is-true-for-more-than/m-p/696426#M236690</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-15T23:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when status field is true for more than 5 min no matter the amount of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trigger-an-alert-when-status-field-is-true-for-more-than/m-p/696427#M236691</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;want an alert if there has been a period for every1 minute of at least 5 minutes of Status being "Down" and if its interrupted with a status = Up then it resets the count and will not alert regarding the amount of event counts&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 23:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trigger-an-alert-when-status-field-is-true-for-more-than/m-p/696427#M236691</guid>
      <dc:creator>Cheng2Ready</dc:creator>
      <dc:date>2024-08-15T23:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when status field is true for more than 5 min no matter the amount of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trigger-an-alert-when-status-field-is-true-for-more-than/m-p/696428#M236692</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;This is what I imagine it should look like&amp;nbsp;&lt;BR /&gt;but im not sure if there is a way to add in a condition for Streamstats&amp;nbsp;&lt;BR /&gt;for this command?&amp;nbsp; or a workaround?&lt;BR /&gt;"reset_on_change= if (status="UP", 1, 0)&amp;nbsp; "&lt;BR /&gt;&lt;BR /&gt;| bucket span=1m _time&lt;BR /&gt;| eval status_change=if(status="DOWN",1,0)&lt;BR /&gt;| streamstats sum(status_change) as down_count&amp;nbsp; reset_on_change= if (status="UP", 1, 0)&lt;BR /&gt;| eval is_alert=if(down_count &amp;gt;=5 AND status="DOWN",1,0)&lt;BR /&gt;| where is_alert=1&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 23:23:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trigger-an-alert-when-status-field-is-true-for-more-than/m-p/696428#M236692</guid>
      <dc:creator>Cheng2Ready</dc:creator>
      <dc:date>2024-08-15T23:23:28Z</dc:date>
    </item>
  </channel>
</rss>

