<?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: Create a recurring alert based on message strings in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607279#M14063</link>
    <description>&lt;P&gt;That's right - however, if i use dedup, and if the failed message has occurred after the success message, would that removes duplicates for failed messages&lt;BR /&gt;&lt;BR /&gt;Only bit I don't get is, how do i compare timestamp for msg 4 (success) to be latest among all messages?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 01:08:15 GMT</pubDate>
    <dc:creator>chaitanyaaiops</dc:creator>
    <dc:date>2022-07-28T01:08:15Z</dc:date>
    <item>
      <title>How to create a recurring alert based on message strings?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607011#M14040</link>
      <description>&lt;P&gt;Dear experts,&lt;BR /&gt;I've created an alert based on a message string to identify closed connections . However, alert gets triggered only once although the problem doesn't get fixed until we bounce.&lt;BR /&gt;&lt;BR /&gt;Looking for a query to have an recurring alert, until I see success message string as "*&lt;SPAN&gt;r&lt;STRONG&gt;econfigured with 'RabbitMQ' bean*&lt;/STRONG&gt;&lt;/SPAN&gt;" as the latest in comparison to the failed strings across all events.&lt;BR /&gt;&lt;BR /&gt;Failed messages:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;*com.rabbitmq.client.ShutdownSignalException* OR "*"channel shutdown*"&lt;BR /&gt;&lt;/STRONG&gt;Success message:&amp;nbsp;"*&lt;SPAN&gt;r&lt;STRONG&gt;econfigured with 'RabbitMQ' bean*&lt;/STRONG&gt;&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;Current Alert query that occurs only once:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;index IN ("devcf","devsc") cf_org_name IN(xxxx,yyyy) cf_app_name=* "rabbit*" AND ("channel shutdown*" OR "*com.rabbitmq.client.ShutdownSignalException*" OR "*rabbitmq.client.AlreadyClosedException: channel is already closed due to channel error*") |stats count by cf_app_name, cf_foundation&lt;BR /&gt;&lt;BR /&gt;Thank you for the help&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 14:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607011#M14040</guid>
      <dc:creator>chaitanyaaiops</dc:creator>
      <dc:date>2022-07-26T14:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a recurring alert based on message strings</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607038#M14041</link>
      <description>&lt;P&gt;Alerts are triggered each time the search criteria are met (unless throttled).&amp;nbsp; If the shutdown event is only received once then the alert will only be triggered once.&amp;nbsp; If you want the alert to repeat then the search must be written and scheduled to find the triggering event (or canceling event) each time it runs.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 13:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607038#M14041</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-26T13:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create a recurring alert based on message strings</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607043#M14042</link>
      <description>&lt;P&gt;Thank you Rich - however, I don't want to create noise of recurring alert unless there is a need. i.e., only if the reconfigured message is not the latest in comparison to other strings - i want alerts to recur&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 13:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607043#M14042</guid>
      <dc:creator>chaitanyaaiops</dc:creator>
      <dc:date>2022-07-26T13:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a recurring alert based on message strings</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607060#M14043</link>
      <description>&lt;P&gt;That requirement can be included in the search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN ("devcf","devsc") cf_org_name IN(xxxx,yyyy) cf_app_name=* "rabbit*" AND ("channel shutdown*" OR "*com.rabbitmq.client.ShutdownSignalException*" OR "*rabbitmq.client.AlreadyClosedException: channel is already closed due to channel error*" OR "*reconfigured with 'RabbitMQ' bean*") 
| dedup &amp;lt;&amp;lt;field with message&amp;gt;&amp;gt;
| where NOT match(&amp;lt;&amp;lt;field with message&amp;gt;&amp;gt;, "reconfigured with 'RabbitMQ' bean")
| stats count by cf_app_name, cf_foundation&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Jul 2022 15:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607060#M14043</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-26T15:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a recurring alert based on message strings</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607201#M14052</link>
      <description>&lt;P&gt;Thank you once again Rich.&amp;nbsp;&lt;BR /&gt;To add more details:&lt;BR /&gt;Failed condition comes as a different fields in the event compared to reconfigured which comes at a different position of the event. In short, if i extract this is how it would look&lt;/P&gt;&lt;P&gt;msg1 = "channel shutdown"&lt;BR /&gt;msg2 = "com.rabbitmq.client.ShutdownSignalException"&lt;BR /&gt;msg3 ="*rabbitmq.client.AlreadyClosedException: channel is already closed due to channel error*"&lt;BR /&gt;msg4=&amp;nbsp;"*reconfigured with 'RabbitMQ' bean*"&lt;BR /&gt;&lt;BR /&gt;Alert should be kept triggering until msg 4 is latest in comparison to all other 3 messages irrespective of even it occurring only once.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 13:30:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607201#M14052</guid>
      <dc:creator>chaitanyaaiops</dc:creator>
      <dc:date>2022-07-27T13:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a recurring alert based on message strings</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607210#M14053</link>
      <description>&lt;P&gt;If the failure and success messages are in different fields, then we can use the coalesce function to combine them for dedup.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN ("devcf","devsc") cf_org_name IN(xxxx,yyyy) cf_app_name=* "rabbit*" AND ("channel shutdown*" OR "*com.rabbitmq.client.ShutdownSignalException*" OR "*rabbitmq.client.AlreadyClosedException: channel is already closed due to channel error*" OR "*reconfigured with 'RabbitMQ' bean*") 
| eval alert_field = coalesce(&amp;lt;&amp;lt;msg1 field&amp;gt;&amp;gt;, &amp;lt;&amp;lt;msg2 field&amp;gt;&amp;gt;, &amp;lt;&amp;lt;msg3 field&amp;gt;&amp;gt;, &amp;lt;&amp;lt;msg4 field&amp;gt;&amp;gt;)
| dedup alert_field
| where NOT match(alert_field, "reconfigured with 'RabbitMQ' bean")
| stats count by cf_app_name, cf_foundation&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jul 2022 14:18:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607210#M14053</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-27T14:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a recurring alert based on message strings</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607223#M14055</link>
      <description>&lt;P&gt;Thanks Rich. However, the challenge being alert is set to run for every 15 mins and events occur only once. How can it recur every 15 mins since the failure event won't occur?&lt;BR /&gt;&lt;BR /&gt;Thank you for patience&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 16:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607223#M14055</guid>
      <dc:creator>chaitanyaaiops</dc:creator>
      <dc:date>2022-07-27T16:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create a recurring alert based on message strings</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607240#M14058</link>
      <description>&lt;P&gt;Yes, that's the tricky bit and goes back to the part of my first reply that said "&lt;SPAN&gt;the search must be written and scheduled to find the triggering event".&amp;nbsp; Rather than search back 15 minutes, it will be necessary for the alert to search back as far as necessary to find the events of interest.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 18:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607240#M14058</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-27T18:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create a recurring alert based on message strings</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607279#M14063</link>
      <description>&lt;P&gt;That's right - however, if i use dedup, and if the failed message has occurred after the success message, would that removes duplicates for failed messages&lt;BR /&gt;&lt;BR /&gt;Only bit I don't get is, how do i compare timestamp for msg 4 (success) to be latest among all messages?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 01:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607279#M14063</guid>
      <dc:creator>chaitanyaaiops</dc:creator>
      <dc:date>2022-07-28T01:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a recurring alert based on message strings</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607359#M14068</link>
      <description>&lt;P&gt;There's no need to compare timestamps.&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;dedup&lt;/FONT&gt; command keeps the most recent event so whatever result you get must be the latest message.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 12:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-recurring-alert-based-on-message-strings/m-p/607359#M14068</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-28T12:11:46Z</dc:date>
    </item>
  </channel>
</rss>

