<?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: Why is my Splunk email trigger sending an email for every host found? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381447#M6720</link>
    <description>&lt;P&gt;I think I found the issue - I right clicked on the alert and opened the search in a separate panel to edit it, as well as the alert settings in the original pane. &lt;BR /&gt;
Editing and saving the search in the new panel did not save it in the actual. Discovered that when I reopened the alert and saw it had not been saved for whatever reason.&lt;BR /&gt;
Thanks for the help.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2019 13:38:57 GMT</pubDate>
    <dc:creator>mbrannaman</dc:creator>
    <dc:date>2019-02-14T13:38:57Z</dc:date>
    <item>
      <title>Why is my Splunk email trigger sending an email for every host found?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381441#M6714</link>
      <description>&lt;P&gt;I created an alert with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xxxx "Error Message"|
stats count as COUNT by host|
where COUNT &amp;gt; 6000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and an alert with the trigger condition where COUNT &amp;gt; 6000 and to send a message for each result.&lt;/P&gt;

&lt;P&gt;The issue I have is that the alert returns only 2 records, but the alert sends an email for every single host.&lt;/P&gt;

&lt;P&gt;How can I have emails sent for just the hosts returned?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 15:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381441#M6714</guid>
      <dc:creator>mbrannaman</dc:creator>
      <dc:date>2019-02-13T15:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk email trigger sending an email for every host found?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381442#M6715</link>
      <description>&lt;P&gt;@mbrannaman, &lt;/P&gt;

&lt;P&gt;If you have the &lt;CODE&gt;where&lt;/CODE&gt; condition already part of the search, remove it from the trigger condition and add &lt;CODE&gt;No of Results&lt;/CODE&gt; &lt;CODE&gt;is greater than&lt;/CODE&gt; &lt;CODE&gt;0&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 15:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381442#M6715</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-02-13T15:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk email trigger sending an email for every host found?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381443#M6716</link>
      <description>&lt;P&gt;Thanks! But it still returns an email for every host regardless of the count.&lt;BR /&gt;
The issue I have is (I think) the docs are pretty sparse, but it says the alert triggers off the base search - which does not include the count or the where.&lt;BR /&gt;
I am not sure how to combine a count and where into the base search of&lt;BR /&gt;
index=xxxx "Error Message"|&lt;BR /&gt;
Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381443#M6716</guid>
      <dc:creator>mbrannaman</dc:creator>
      <dc:date>2019-02-13T18:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk email trigger sending an email for every host found?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381444#M6717</link>
      <description>&lt;P&gt;I am very confused by the way you have phrased your question but in addition to what @renjith.nair said, you might need to change the alert's &lt;CODE&gt;digest&lt;/CODE&gt; setting.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 01:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381444#M6717</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-14T01:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk email trigger sending an email for every host found?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381445#M6718</link>
      <description>&lt;P&gt;If it doesn't work, why did you click &lt;CODE&gt;Accept&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 01:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381445#M6718</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-14T01:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk email trigger sending an email for every host found?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381446#M6719</link>
      <description>&lt;P&gt;Term &lt;CODE&gt;base search&lt;/CODE&gt; might be confusing but whatever you are doing in your search above should work with the alert. Please make sure that the time frame you select for your search and alert are same, i.e. verify the alert configuration and check the time window/range.&lt;/P&gt;

&lt;P&gt;Also, check the recent alert - &lt;CODE&gt;view recent&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Jobs&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Actions&lt;/CODE&gt; &amp;gt; &lt;CODE&gt;Job&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Inspect Job&lt;/CODE&gt; and check the search log. This should give you information about the search ran for the alert&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 04:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381446#M6719</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-02-14T04:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk email trigger sending an email for every host found?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381447#M6720</link>
      <description>&lt;P&gt;I think I found the issue - I right clicked on the alert and opened the search in a separate panel to edit it, as well as the alert settings in the original pane. &lt;BR /&gt;
Editing and saving the search in the new panel did not save it in the actual. Discovered that when I reopened the alert and saw it had not been saved for whatever reason.&lt;BR /&gt;
Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 13:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-Splunk-email-trigger-sending-an-email-for-every-host/m-p/381447#M6720</guid>
      <dc:creator>mbrannaman</dc:creator>
      <dc:date>2019-02-14T13:38:57Z</dc:date>
    </item>
  </channel>
</rss>

