<?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: Alert Trigger Condition - Alert only if second string is not present in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-Trigger-Condition-Alert-only-if-second-string-is-not/m-p/597355#M13835</link>
    <description>&lt;P&gt;Thanks ITWhisperer&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works like a charm, I just removed the lasttime statement as the alert is configured to run in a cron schedule searching last 15min &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick assistance&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 10:34:24 GMT</pubDate>
    <dc:creator>pierrem</dc:creator>
    <dc:date>2022-05-11T10:34:24Z</dc:date>
    <item>
      <title>Alert Trigger Condition - Alert only if second string is not present</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Trigger-Condition-Alert-only-if-second-string-is-not/m-p/596899#M13825</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm currently trying to configure a alert to trigger when 2 events are NOT present in last 15min.&amp;nbsp;&lt;BR /&gt;In short if we have only Event1 but not Event2 then a alert should be triggered, if both events are present in last 15min then no alerts should be triggered.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use case, the alert is being configured to alert us when a VPN tunnel interface goes down and stays down for more than 15min, generally these VPN connections to terminate briefly but comes back up after a few seconds, hence we would like only alert if Event1 (down) took place in last 15min without Event2 (up) taking place.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Event1 - Search query&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=firewall 10.10.10.10 Firewall_Name_XYZ=TEST123 AND "Lost Service"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Event2 - Search query&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=firewall 10.10.10.10 Firewall_Name_XYZ=TEST123 AND (inbound "LAN-to-LAN" "created")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Search Query to show both events&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=firewall 10.10.10.10 Firewall_Name_XYZ=TEST123 AND ("Lost Service" OR (inbound "LAN-to-LAN" "created"))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Any assistance will be greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 16:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Trigger-Condition-Alert-only-if-second-string-is-not/m-p/596899#M13825</guid>
      <dc:creator>pierrem</dc:creator>
      <dc:date>2022-05-09T16:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Trigger Condition - Alert only if second string is not present</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Trigger-Condition-Alert-only-if-second-string-is-not/m-p/596903#M13826</link>
      <description>&lt;P&gt;You could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=firewall 10.10.10.10 Firewall_Name_XYZ=TEST123 AND ("Lost Service" OR (inbound "LAN-to-LAN" "created"))
| rex "(?&amp;lt;event&amp;gt;Lost Service)"
| fillnull value="inbound created" event
| stats latest(event) as lastevent latest(_time) as lasttime
| where lastevent = "Lost Service" AND lasttime &amp;lt; now()-15*60&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 May 2022 08:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Trigger-Condition-Alert-only-if-second-string-is-not/m-p/596903#M13826</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-09T08:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Trigger Condition - Alert only if second string is not present</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Trigger-Condition-Alert-only-if-second-string-is-not/m-p/597355#M13835</link>
      <description>&lt;P&gt;Thanks ITWhisperer&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works like a charm, I just removed the lasttime statement as the alert is configured to run in a cron schedule searching last 15min &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick assistance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 10:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Trigger-Condition-Alert-only-if-second-string-is-not/m-p/597355#M13835</guid>
      <dc:creator>pierrem</dc:creator>
      <dc:date>2022-05-11T10:34:24Z</dc:date>
    </item>
  </channel>
</rss>

