<?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 Multiple condition checks before sending alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Multiple-condition-checks-before-sending-alert/m-p/506734#M9218</link>
    <description>&lt;P&gt;hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have alert which finds the string '&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;is&lt;/SPAN&gt; &lt;SPAN class="t"&gt;now&lt;/SPAN&gt; &lt;SPAN class="t"&gt;DOWN&lt;/SPAN&gt;&lt;/SPAN&gt;'&amp;nbsp; and then send the alert but we realized that after few seconds to few mins the node is coming up, so we want to get the alert if the node doesn't come up after 5 mins, can any one help us?&lt;/P&gt;&lt;P&gt;We want to get alert with below flow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;search string&lt;STRONG&gt; '&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;is&lt;/SPAN&gt; &lt;SPAN class="t"&gt;now&lt;/SPAN&gt; &lt;SPAN class="t"&gt;DOWN&lt;/SPAN&gt;&lt;/SPAN&gt;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;condition:&lt;/STRONG&gt; and check string '&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;10.83.29.240&lt;/SPAN&gt; &lt;SPAN class="t"&gt;is&lt;/SPAN&gt; &lt;SPAN class="t"&gt;now&lt;/SPAN&gt; &lt;SPAN class="t"&gt;UP&lt;/SPAN&gt;&lt;/SPAN&gt;' about next 5 mins before sending alert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Logprints:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;GossipTasks:1&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class="t"&gt;2020-06-30&lt;/SPAN&gt; &lt;SPAN class="t"&gt;01:42:40&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class="t"&gt;115&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Gossiper.java:1041&lt;/SPAN&gt; &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;InetAddress&lt;/SPAN&gt; &lt;SPAN class="t"&gt;/10.83.29.240&lt;/SPAN&gt; &lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;is&lt;/SPAN&gt; &lt;SPAN class="t"&gt;now&lt;/SPAN&gt; &lt;SPAN class="t"&gt;DOWN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;SharedPool-Worker-4&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class="t"&gt;2020-06-30&lt;/SPAN&gt; &lt;SPAN class="t"&gt;01:42:51&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class="t"&gt;401&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Gossiper.java:1026&lt;/SPAN&gt; &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;InetAddress&lt;/SPAN&gt; &lt;SPAN class="t"&gt;/10.83.29.240&lt;/SPAN&gt; &lt;SPAN class="t"&gt;is&lt;/SPAN&gt; &lt;SPAN class="t"&gt;now&lt;/SPAN&gt; &lt;SPAN class="t"&gt;UP&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;As you see after 2 seconds that node came up.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;Chandra&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 16:32:03 GMT</pubDate>
    <dc:creator>chandukreddi</dc:creator>
    <dc:date>2020-06-30T16:32:03Z</dc:date>
    <item>
      <title>Multiple condition checks before sending alert</title>
      <link>https://community.splunk.com/t5/Alerting/Multiple-condition-checks-before-sending-alert/m-p/506734#M9218</link>
      <description>&lt;P&gt;hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have alert which finds the string '&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;is&lt;/SPAN&gt; &lt;SPAN class="t"&gt;now&lt;/SPAN&gt; &lt;SPAN class="t"&gt;DOWN&lt;/SPAN&gt;&lt;/SPAN&gt;'&amp;nbsp; and then send the alert but we realized that after few seconds to few mins the node is coming up, so we want to get the alert if the node doesn't come up after 5 mins, can any one help us?&lt;/P&gt;&lt;P&gt;We want to get alert with below flow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;search string&lt;STRONG&gt; '&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;is&lt;/SPAN&gt; &lt;SPAN class="t"&gt;now&lt;/SPAN&gt; &lt;SPAN class="t"&gt;DOWN&lt;/SPAN&gt;&lt;/SPAN&gt;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;condition:&lt;/STRONG&gt; and check string '&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;10.83.29.240&lt;/SPAN&gt; &lt;SPAN class="t"&gt;is&lt;/SPAN&gt; &lt;SPAN class="t"&gt;now&lt;/SPAN&gt; &lt;SPAN class="t"&gt;UP&lt;/SPAN&gt;&lt;/SPAN&gt;' about next 5 mins before sending alert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Logprints:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;GossipTasks:1&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class="t"&gt;2020-06-30&lt;/SPAN&gt; &lt;SPAN class="t"&gt;01:42:40&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class="t"&gt;115&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Gossiper.java:1041&lt;/SPAN&gt; &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;InetAddress&lt;/SPAN&gt; &lt;SPAN class="t"&gt;/10.83.29.240&lt;/SPAN&gt; &lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;is&lt;/SPAN&gt; &lt;SPAN class="t"&gt;now&lt;/SPAN&gt; &lt;SPAN class="t"&gt;DOWN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;SharedPool-Worker-4&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class="t"&gt;2020-06-30&lt;/SPAN&gt; &lt;SPAN class="t"&gt;01:42:51&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class="t"&gt;401&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Gossiper.java:1026&lt;/SPAN&gt; &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;InetAddress&lt;/SPAN&gt; &lt;SPAN class="t"&gt;/10.83.29.240&lt;/SPAN&gt; &lt;SPAN class="t"&gt;is&lt;/SPAN&gt; &lt;SPAN class="t"&gt;now&lt;/SPAN&gt; &lt;SPAN class="t"&gt;UP&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;As you see after 2 seconds that node came up.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;Chandra&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 16:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Multiple-condition-checks-before-sending-alert/m-p/506734#M9218</guid>
      <dc:creator>chandukreddi</dc:creator>
      <dc:date>2020-06-30T16:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition checks before sending alert</title>
      <link>https://community.splunk.com/t5/Alerting/Multiple-condition-checks-before-sending-alert/m-p/506744#M9219</link>
      <description>&lt;P&gt;Something like this should do it.&amp;nbsp; It pulls all up and down events and extracts the state into a field.&amp;nbsp; Then the most recent state for each server is saved and those which are&amp;nbsp;down for more than 5 minutes are returned.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo ("is now DOWN" OR "is now UP")
| rex "is now (?&amp;lt;state&amp;gt;\w+)"
| stats latest(state) as state by InetAddress
| where (state="DOWN" AND _time&amp;lt;=relative_time(now(), "-5m")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 17:13:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Multiple-condition-checks-before-sending-alert/m-p/506744#M9219</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-30T17:13:19Z</dc:date>
    </item>
  </channel>
</rss>

