<?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: Triggered Alerts are Occuring twice on every Event that happens once in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154652#M2517</link>
    <description>&lt;P&gt;I'll give you the _raw data which contains all the fields of an event:&lt;BR /&gt;
    +++ 2016-01-12 17:57:28 +++&lt;BR /&gt;
    ClientId=my-clientid&lt;BR /&gt;
    HostId=my-hostid&lt;BR /&gt;
    Hostname=my-hostname&lt;BR /&gt;
    Platform=Linux (Ubuntu 12.04.5 LTS)&lt;BR /&gt;
    Versions=app1:1.3.3,app2:1.2.0&lt;BR /&gt;
    Mode=Installation&lt;BR /&gt;
    Class=PROCESS_NOT_RUNNING&lt;BR /&gt;
    Msg=One or more processes are not running&lt;/P&gt;

&lt;P&gt;(I've replaced some field values since they contain sensitive data)&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:24:56 GMT</pubDate>
    <dc:creator>dschnabel</dc:creator>
    <dc:date>2020-09-29T08:24:56Z</dc:date>
    <item>
      <title>Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154640#M2505</link>
      <description>&lt;P&gt;I have configured an Alert that is running in real time.&lt;BR /&gt;
with the value of host="10.56.183.0" "%LINEPROTO-5-UPDOWN"&lt;BR /&gt;
since 10.56.183.0 is a switch and I'd like to recieve an email when interface goes up or down.&lt;/P&gt;

&lt;P&gt;When the event occurs once (I can see in the search that it ocurrs once) I'm getting 2 emails.&lt;BR /&gt;
and when looking at the Alert window - I can see that it counted 2.&lt;/P&gt;

&lt;P&gt;any idea why ?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2014 09:29:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154640#M2505</guid>
      <dc:creator>sbeamro</dc:creator>
      <dc:date>2014-12-08T09:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154641#M2506</link>
      <description>&lt;P&gt;I'm seeing the same behavior with an alert that I configured. The alert is triggered twice but the event only happens once. To be safe I deleted and re-created the alert but the problem didn't go away. Is this an issue with Splunk alerts?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 20:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154641#M2506</guid>
      <dc:creator>dschnabel</dc:creator>
      <dc:date>2016-01-11T20:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154642#M2507</link>
      <description>&lt;P&gt;Hi @dschnabel,&lt;BR /&gt;
Could you share more of your alert configuration?  For example, what do you have for the query, the triggering condition, and any throttling? Also, what software version are you using? &lt;BR /&gt;
Thanks for the details!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 00:59:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154642#M2507</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-01-12T00:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154643#M2508</link>
      <description>&lt;P&gt;Hi @frobinson,&lt;/P&gt;

&lt;P&gt;thanks for your reply. This is the configuration of my alert:&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Query: index=tv-* ClientId NOT (some-id-1 OR some-id-2 OR some-id-3) ClientId="*" Class NOT SUCCESS_FIRST_ATTEMPT NOT "Server did not accept key" Mode=Installation&lt;/P&gt;

&lt;P&gt;Trigger Condition: Per-Result&lt;/P&gt;

&lt;P&gt;Alert Type: Real-time&lt;/P&gt;

&lt;P&gt;No throttling.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Where would I find the software version?&lt;/P&gt;

&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:24:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154643#M2508</guid>
      <dc:creator>dschnabel</dc:creator>
      <dc:date>2020-09-29T08:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154644#M2509</link>
      <description>&lt;P&gt;Hi Daniel,&lt;BR /&gt;
You can try the "About" link at bottom-left of a page in Splunk Web:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/Troubleshooting/CheckSplunkversion"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/Troubleshooting/CheckSplunkversion&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 01:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154644#M2509</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-01-12T01:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154645#M2510</link>
      <description>&lt;P&gt;Splunk Version     6.3.1511.1&lt;BR /&gt;
Splunk Build     90ea9ab275dc&lt;BR /&gt;
List of Products:     retention&lt;BR /&gt;
Server Name     ip-192-168-92-140 &lt;BR /&gt;
[...]&lt;BR /&gt;
Current Application: Search &amp;amp; Reporting&lt;BR /&gt;
App Version     6.3.1511.1 &lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 01:21:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154645#M2510</guid>
      <dc:creator>dschnabel</dc:creator>
      <dc:date>2016-01-12T01:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154646#M2511</link>
      <description>&lt;P&gt;That being said, it might be generally useful (regardless of version) to consider throttling the alert. Real-time alerts with per-result triggering can sometimes fire more often than you need. For example, our docs have this note about this alert type:&lt;/P&gt;

&lt;P&gt;"You can also use transforming commands to return results based on processing the retrieved events. A per-result alert triggers in both cases, when the search returns an event or when a transforming command returns results."&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/Alert/Defineper-resultalerts"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/Alert/Defineper-resultalerts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Although I don't see a transforming command in your query example, there might be some similar behind-the-scenes processing of the initial retrieved events that is causing the extra triggering.  &lt;/P&gt;

&lt;P&gt;Here is some documentation about how to throttle an alert to reduce the frequency of alert triggering:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/Alert/ThrottleAlerts"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/Alert/ThrottleAlerts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps! &lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 01:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154646#M2511</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-01-12T01:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154647#M2512</link>
      <description>&lt;P&gt;Thanks for the version info! Please see my comment below--I think throttling could help reduce the triggering.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 01:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154647#M2512</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-01-12T01:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154648#M2513</link>
      <description>&lt;P&gt;Ok, I've enabled throttling and will let you know soon if that works.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 01:37:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154648#M2513</guid>
      <dc:creator>dschnabel</dc:creator>
      <dc:date>2016-01-12T01:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154649#M2514</link>
      <description>&lt;P&gt;Also--to dig a bit more into how your query is returning events and to see if there is a way to modify it to establish more efficient triggering, could you post some info from the results that the query returns? For one event, could you post examples of what's in the following fields?&lt;/P&gt;

&lt;P&gt;_raw&lt;BR /&gt;
clientID&lt;BR /&gt;
class&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 01:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154649#M2514</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-01-12T01:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154650#M2515</link>
      <description>&lt;P&gt;Yes, please do!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 01:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154650#M2515</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-01-12T01:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154651#M2516</link>
      <description>&lt;P&gt;The double alerts are gone. Instead I'm now seeing event alerts that shouldn't trigger because 'ClientId=some-id-3' and my query (see above) should filter those out. But that's a different problem.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 19:09:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154651#M2516</guid>
      <dc:creator>dschnabel</dc:creator>
      <dc:date>2016-01-12T19:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154652#M2517</link>
      <description>&lt;P&gt;I'll give you the _raw data which contains all the fields of an event:&lt;BR /&gt;
    +++ 2016-01-12 17:57:28 +++&lt;BR /&gt;
    ClientId=my-clientid&lt;BR /&gt;
    HostId=my-hostid&lt;BR /&gt;
    Hostname=my-hostname&lt;BR /&gt;
    Platform=Linux (Ubuntu 12.04.5 LTS)&lt;BR /&gt;
    Versions=app1:1.3.3,app2:1.2.0&lt;BR /&gt;
    Mode=Installation&lt;BR /&gt;
    Class=PROCESS_NOT_RUNNING&lt;BR /&gt;
    Msg=One or more processes are not running&lt;/P&gt;

&lt;P&gt;(I've replaced some field values since they contain sensitive data)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:24:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154652#M2517</guid>
      <dc:creator>dschnabel</dc:creator>
      <dc:date>2020-09-29T08:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154653#M2518</link>
      <description>&lt;P&gt;Ok, sounds like throttling fixed the double triggering. Perhaps there's a way to rewrite the query to deal with the other aspect of the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 21:25:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154653#M2518</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-01-12T21:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154654#M2519</link>
      <description>&lt;P&gt;Going back to your query:&lt;/P&gt;

&lt;P&gt;index=tv- ClientId NOT (some-id-1 OR some-id-2 OR some-id-3) ClientId="" Class NOT SUCCESS_FIRST_ATTEMPT NOT "Server did not accept key" Mode=Installation&lt;/P&gt;

&lt;P&gt;If I'm interpreting the query correctly, then the events you want to alert on should follow these parameters&lt;BR /&gt;
--ClientId== anything other than "some-id-1", "some-id-2", or "some-id-3" &lt;/P&gt;

&lt;P&gt;--Class== not "success_first_attempt" or "Server did not accept key"&lt;/P&gt;

&lt;P&gt;--Mode== only installation&lt;/P&gt;

&lt;P&gt;If the above is correct, what happens if you remove this from your query: Client = "*"? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154654#M2519</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2020-09-29T08:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154655#M2520</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;--ClientId== anything other than "some-id-1", "some-id-2", or "some-id-3"&lt;BR /&gt;
That's almost correct, see below.&lt;/P&gt;

&lt;P&gt;--Class== not "success_first_attempt" or "Server did not accept key"&lt;BR /&gt;
Class== not "success_first_attempt" is correct, the phrase "Server did not accept key" would appear in the 'Msg' key. So properly this part would be:&lt;BR /&gt;
--Class== not "success_first_attempt" and --Msg== not contain "Server did not accept key"&lt;BR /&gt;
but it also works if 'Msg' is omitted.&lt;/P&gt;

&lt;P&gt;--Mode== only installation&lt;BR /&gt;
That's correct&lt;/P&gt;

&lt;P&gt;what happens if you remove this from your query: Client = "*"?&lt;BR /&gt;
ClientId can be empty (ClientId=). In that case we don't want to trigger the alert. That's why I have the expression ClientId="*" in there.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154655#M2520</guid>
      <dc:creator>dschnabel</dc:creator>
      <dc:date>2020-09-29T08:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154656#M2521</link>
      <description>&lt;P&gt;Give this alternative query a try:&lt;/P&gt;

&lt;P&gt;index=tv- (ClientId=* AND ClientId NOT (some-id-1 OR some-id-2 OR some-id-3)) Class NOT SUCCESS_FIRST_ATTEMPT NOT "Server did not accept key" Mode=Installation&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154656#M2521</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2020-09-29T08:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154657#M2522</link>
      <description>&lt;P&gt;Ok, and what should I set for "Per result throttling fields"? &lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 00:04:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154657#M2522</guid>
      <dc:creator>dschnabel</dc:creator>
      <dc:date>2016-01-13T00:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154658#M2523</link>
      <description>&lt;P&gt;I'm running a couple of questions about your query by my colleagues who work on the search language. You could try the query without throttling, to see if it yields the results you want. I'll report back if there's further advice we can offer! Stay tuned.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 00:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154658#M2523</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-01-13T00:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Triggered Alerts are Occuring twice on every Event that happens once</title>
      <link>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154659#M2524</link>
      <description>&lt;P&gt;Ok, my colleagues got back with a slightly different query suggestion. Try it without throttling to see if it yields the results you want. &lt;/P&gt;

&lt;P&gt;index=tv- ClientId !="" ClientId NOT (some-id-1 OR some-id-2 OR some-id-3) Class NOT SUCCESS_FIRST_ATTEMPT NOT "Server did not accept key" Mode=Installation&lt;/P&gt;

&lt;P&gt;The difference is in using ClientId !="" vs. ClientId=&lt;EM&gt;. According to my colleagues, if you use ClientId=&lt;/EM&gt;, you will get events that have this field, even if the value for that field is an empty string. Try !="" to avoid the events with empty ClientId values.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:25:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Triggered-Alerts-are-Occuring-twice-on-every-Event-that-happens/m-p/154659#M2524</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2020-09-29T08:25:15Z</dc:date>
    </item>
  </channel>
</rss>

