<?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: Trigger alert on multiple events in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515394#M9534</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225186"&gt;@bitnoise&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I you take a closer look, you will notice, that the fields are called "row 1" and "row 2", and you base your where statement on "row1" and "row2" (without blanks).&lt;BR /&gt;&lt;BR /&gt;Therefore my comment to rename the fields.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So first do this:&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rename "row 1" as count1, "row 2" as count2&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And than base the &lt;EM&gt;where&lt;/EM&gt; command on &lt;EM&gt;count1&lt;/EM&gt; and &lt;EM&gt;count2&amp;nbsp;&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;&lt;EM&gt;--&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Karma and/or Solution tagging appreciated.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 08:31:09 GMT</pubDate>
    <dc:creator>rnowitzki</dc:creator>
    <dc:date>2020-08-21T08:31:09Z</dc:date>
    <item>
      <title>How to trigger email alert on multiple events at different intervals?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/514844#M9504</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have seen the question pass multiple times already, so I have searched it already, but&amp;nbsp; I was unable to find a query for my specific situation.&lt;/P&gt;
&lt;P&gt;So, my query ends with:&amp;nbsp;&lt;STRONG&gt;|stats count by sender| where isnull(count) OR count &amp;lt; 100&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I had my alert set up that if it occurs, that I get a mail.&amp;nbsp; The goal is here that this above event must happen twice in a timeframe of 5 minutes before he should send the mail. Can anyone please assist me with this?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Danny&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 18:53:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/514844#M9504</guid>
      <dc:creator>bitnoise</dc:creator>
      <dc:date>2020-08-19T18:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger alert on multiple events</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/514860#M9506</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225186"&gt;@bitnoise&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Your requirement is not 100% clear to me. Do you want to trigger the alert, when you&amp;nbsp; search a timeframe of 5 minutes and it finds (at least) 2 "sender" with a count of 0 - 99,&amp;nbsp; or do you want to run the search every 5 minutes and trigger the alert when it finds something 2 times in a row?&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 07:57:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/514860#M9506</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-08-19T07:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger alert on multiple events</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/514976#M9518</link>
      <description>&lt;P&gt;Hi Ralph,&lt;/P&gt;&lt;P&gt;sorry, I'll try to be more clear.&lt;BR /&gt;Currently I trigger a mail when 'sender count' &amp;lt; 100 in 5 minutes.&amp;nbsp; Now, this "event" should happen twice in a row. (So 10:00 and 10:05 and then he should send the mail).&lt;BR /&gt;So, the option 2 in your question:&amp;nbsp; every 5 mins, 2 times in a row = alert mail.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 15:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/514976#M9518</guid>
      <dc:creator>bitnoise</dc:creator>
      <dc:date>2020-08-19T15:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger alert on multiple events</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/514988#M9519</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225186"&gt;@bitnoise&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;How about a timechart with span=5m with a search timeframe of &lt;EM&gt;from&lt;/EM&gt; -10m &lt;EM&gt;to&lt;/EM&gt; now (or maybe -11m@m to -1m@m to allow some delay).&lt;BR /&gt;&lt;BR /&gt;If you get 2 events, you know that it happened 2 times in a row.&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;--&lt;BR /&gt;&lt;EM&gt;Karma and/or Solution tagging appreciated.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 15:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/514988#M9519</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-08-19T15:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger alert on multiple events</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515127#M9522</link>
      <description>&lt;P&gt;Hi Ralph, I adjusted a test trigger yesterday and let it run all night.&amp;nbsp; Some strange behavior still, but I'll try to finetune it and come back with the result.&lt;/P&gt;&lt;P&gt;Currently I did this:&lt;BR /&gt;SEARCH: xxx | timechart span=11m count by sender| where isnull(count) OR count &amp;lt; 400&lt;BR /&gt;CRON:&amp;nbsp;*/5 * * * *&lt;BR /&gt;TIME RANGE: Last 301 seconds&lt;BR /&gt;TRIGGER: n° of results is greater than 1; once&lt;/P&gt;&lt;P&gt;I have the impression the results are not really consistent due to the 11m.&lt;/P&gt;&lt;P&gt;Mail1:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="202px" height="25px"&gt;Thu Aug 20 05:32:00 2020&lt;/TD&gt;&lt;TD width="40px" height="25px"&gt;151&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="202px" height="25px"&gt;Thu Aug 20 05:&lt;STRONG&gt;43&lt;/STRONG&gt;:00 2020&lt;/TD&gt;&lt;TD width="40px" height="25px"&gt;&lt;FONT color="#FF0000"&gt;128&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Mail 2:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Thu Aug 20 05:&lt;STRONG&gt;43&lt;/STRONG&gt;:00 2020&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;214&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Thu Aug 20 05:54:00 2020&lt;/TD&gt;&lt;TD&gt;54&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 20 Aug 2020 06:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515127#M9522</guid>
      <dc:creator>bitnoise</dc:creator>
      <dc:date>2020-08-20T06:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger alert on multiple events</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515138#M9524</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225186"&gt;@bitnoise&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Change the time range to &lt;EM&gt;earliest&lt;/EM&gt; &lt;A href="mailto:-11m@m" target="_blank"&gt;-11m@m&lt;/A&gt;&amp;nbsp;&lt;EM&gt;latest&lt;/EM&gt; &lt;A href="mailto:-1m@m" target="_blank"&gt;-1m@m&lt;/A&gt;&amp;nbsp; (under &lt;EM&gt;advanced&lt;/EM&gt; in the time range picker), this way you look at a 10m timeframe. You could just make it &lt;A href="mailto:-10m@m" target="_blank"&gt;-10m@m&lt;/A&gt;&amp;nbsp;and&amp;nbsp;@m, it depends if you see some delay until all the data is ingested and searchable. Just gives you some buffer.&lt;/P&gt;&lt;P&gt;Accordingly change the span to 10m&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=10m count by sender| where isnull(count) OR count &amp;lt; 400&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;--&lt;BR /&gt;&lt;EM&gt;Karma and/or Solution tagging appreciated.&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 08:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515138#M9524</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-08-20T08:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger alert on multiple events</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515185#M9526</link>
      <description>&lt;P&gt;Woohoo! (ignore the high numbers, had to make sure the event happens &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;Thu Aug 20 13:00:00 2020 417&lt;BR /&gt;Thu Aug 20 13:05:00 2020 &lt;STRONG&gt;618&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thu Aug 20 13:05:00 2020 &lt;STRONG&gt;618&lt;/STRONG&gt;&lt;BR /&gt;Thu Aug 20 13:10:00 2020 525&lt;/P&gt;&lt;P&gt;Final config (for others):&lt;/P&gt;&lt;P&gt;SEARCH | timechart span=300s count by sender| where isnull(count) OR count &amp;lt; 1000&lt;BR /&gt;SEARCH Advanced: &lt;A href="mailto:-10m@m" target="_blank"&gt;-10m@m&lt;/A&gt;&amp;nbsp;&amp;gt;&amp;nbsp;@m&lt;BR /&gt;Alert Timerange:&amp;nbsp;&lt;A href="mailto:-10m@m" target="_blank"&gt;-10m@m&lt;/A&gt;&amp;nbsp;&amp;gt;&amp;nbsp;@m&lt;BR /&gt;Cron:&amp;nbsp;*/5 * * * *&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The only thing I don't know is how to retrieve the 'count' from both results.&lt;BR /&gt;Can I do something like TOTAL MAILS in 5 min: [$result.count$][0] and TOTAL MAILS in 5 min: [$result.count$][1] to retrieve both counts?&lt;BR /&gt;&lt;BR /&gt;Currently I do this:&amp;nbsp;TOTAL MAILS in 5 min: [$result.count$]&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 11:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515185#M9526</guid>
      <dc:creator>bitnoise</dc:creator>
      <dc:date>2020-08-20T11:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger alert on multiple events</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515192#M9527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225186"&gt;@bitnoise&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Let's say your result is&lt;BR /&gt;&lt;BR /&gt;time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count&lt;BR /&gt;&lt;SPAN&gt;Thu Aug 20 13:05:00 2020&amp;nbsp;&lt;/SPAN&gt;618&lt;BR /&gt;&lt;SPAN&gt;Thu Aug 20 13:10:00 2020 525&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Than you can just add...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| table count
| transpose  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;...to make both of the counts available as a token. Does even work without the&lt;EM&gt; | table count&lt;/EM&gt;, but you will have some (2) internal fields in the table as well...but actually they shouldn't care.&lt;EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;The 618 will be in the field "&lt;EM&gt;row 1"&amp;nbsp;&lt;/EM&gt; the 525 in "&lt;EM&gt;row 2".&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;For some cosmetic you could add e.g.:&lt;BR /&gt;| rename "row 1" as count1, "row 2" as count2&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;edit&lt;/STRONG&gt;&lt;/EM&gt;: Not only for cosmetic reasons you should add the &lt;EM&gt;| rename&lt;/EM&gt;.&amp;nbsp; I am not sure if the token reference works with a field that has a space in the name...&lt;BR /&gt;&lt;BR /&gt;Glad I could help&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 12:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515192#M9527</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-08-20T12:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger alert on multiple events</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515392#M9533</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bitnoise_0-1597997851000.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10429iF1FA977D12094691/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bitnoise_0-1597997851000.png" alt="bitnoise_0-1597997851000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strange things happening when I do this with the 'where'.&lt;/P&gt;&lt;P&gt;If I remove the 'where', it shows this: (ps, I just did |table &lt;A href="mailto:email@domain.com" target="_blank" rel="noopener"&gt;email@domain.com&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bitnoise_1-1597997975863.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10430iCBABC49C72F6307B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bitnoise_1-1597997975863.png" alt="bitnoise_1-1597997975863.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 08:21:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515392#M9533</guid>
      <dc:creator>bitnoise</dc:creator>
      <dc:date>2020-08-21T08:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger alert on multiple events</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515394#M9534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225186"&gt;@bitnoise&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I you take a closer look, you will notice, that the fields are called "row 1" and "row 2", and you base your where statement on "row1" and "row2" (without blanks).&lt;BR /&gt;&lt;BR /&gt;Therefore my comment to rename the fields.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So first do this:&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rename "row 1" as count1, "row 2" as count2&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And than base the &lt;EM&gt;where&lt;/EM&gt; command on &lt;EM&gt;count1&lt;/EM&gt; and &lt;EM&gt;count2&amp;nbsp;&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;&lt;EM&gt;--&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Karma and/or Solution tagging appreciated.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 08:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515394#M9534</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-08-21T08:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger alert on multiple events</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515418#M9536</link>
      <description>&lt;P&gt;Don't I feel stupid now... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;this one works as should now, I just had to adapt my alert trigger to a custom trigger where I also do:&lt;/P&gt;&lt;P&gt;where count1 &amp;lt; xxxx AND count2 &amp;lt; xxxx&lt;/P&gt;&lt;P&gt;Thanks a lot for the great assistance!&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 10:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-email-alert-on-multiple-events-at-different/m-p/515418#M9536</guid>
      <dc:creator>bitnoise</dc:creator>
      <dc:date>2020-08-21T10:58:03Z</dc:date>
    </item>
  </channel>
</rss>

