<?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 Why is my alert not triggered even though there are results that meet the criteria? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207177#M60407</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;We have a search which checks for a total count of failures in system in the last 24 hours:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mydata earliest=-24h| stats list(Summary) as "Summary", count(Summary) as SummaryCount
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;when a specific failures occur, the SummaryCount has a value of 1 or more than one.&lt;/P&gt;

&lt;P&gt;Based on that we have created an alert to trigger with custom trigger condition:&lt;BR /&gt;
&lt;CODE&gt;search SummaryCount&amp;gt;=1 and AlertType =Scheduled&lt;/CODE&gt; and is scheduled to run every day, one time at 1 am.&lt;BR /&gt;
and the Action Options, set was "Once"&lt;/P&gt;

&lt;P&gt;Every time we run our search we get a result, so i was expecting there will be 1 alert everyday until the SummaryCount value is returned. But i got the alert only on 1 day and later it does not send any alert emails. &lt;/P&gt;

&lt;P&gt;Can you please help? This is really urgent.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Koti&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2016 15:46:22 GMT</pubDate>
    <dc:creator>kotig</dc:creator>
    <dc:date>2016-11-02T15:46:22Z</dc:date>
    <item>
      <title>Why is my alert not triggered even though there are results that meet the criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207177#M60407</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;We have a search which checks for a total count of failures in system in the last 24 hours:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mydata earliest=-24h| stats list(Summary) as "Summary", count(Summary) as SummaryCount
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;when a specific failures occur, the SummaryCount has a value of 1 or more than one.&lt;/P&gt;

&lt;P&gt;Based on that we have created an alert to trigger with custom trigger condition:&lt;BR /&gt;
&lt;CODE&gt;search SummaryCount&amp;gt;=1 and AlertType =Scheduled&lt;/CODE&gt; and is scheduled to run every day, one time at 1 am.&lt;BR /&gt;
and the Action Options, set was "Once"&lt;/P&gt;

&lt;P&gt;Every time we run our search we get a result, so i was expecting there will be 1 alert everyday until the SummaryCount value is returned. But i got the alert only on 1 day and later it does not send any alert emails. &lt;/P&gt;

&lt;P&gt;Can you please help? This is really urgent.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Koti&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 15:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207177#M60407</guid>
      <dc:creator>kotig</dc:creator>
      <dc:date>2016-11-02T15:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert not triggered even though there are results that meet the criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207178#M60408</link>
      <description>&lt;P&gt;Did you run the query for days you didn't get alert and found results matching your trigger condition?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207178#M60408</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-11-02T16:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert not triggered even though there are results that meet the criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207179#M60409</link>
      <description>&lt;P&gt;Yes, i am getting value for the day it did not trigger.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207179#M60409</guid>
      <dc:creator>kotig</dc:creator>
      <dc:date>2016-11-02T16:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert not triggered even though there are results that meet the criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207180#M60410</link>
      <description>&lt;P&gt;How about you update your alert like this and try.&lt;/P&gt;

&lt;P&gt;Search:    &lt;CODE&gt;index=mydata earliest=-24h| stats list(Summary) as "Summary", count(Summary) as SummaryCount | wher SummaryCount&amp;gt;0&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Time Range: &lt;CODE&gt;-1d@d    to @d&lt;/CODE&gt;&lt;BR /&gt;
Alert Type: &lt;CODE&gt;Scheduled&lt;/CODE&gt;, Cron: &lt;CODE&gt;0 1 * * *&lt;/CODE&gt;&lt;BR /&gt;
Alert condition: &lt;CODE&gt;If number of events greater than 0&lt;/CODE&gt;&lt;BR /&gt;
Action Options: &lt;CODE&gt;Once&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:18:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207180#M60410</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-11-02T16:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert not triggered even though there are results that meet the criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207181#M60411</link>
      <description>&lt;P&gt;Sure thank you will try that option.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 17:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207181#M60411</guid>
      <dc:creator>kotig</dc:creator>
      <dc:date>2016-11-02T17:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert not triggered even though there are results that meet the criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207182#M60412</link>
      <description>&lt;P&gt;I suggest that you should simply use the normal trigger condition of &lt;CODE&gt;Number of Results &amp;gt; 0&lt;/CODE&gt;&lt;BR /&gt;
Your custom search for the alert is broken in a couple of ways:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;and&lt;/CODE&gt; must be capitalized as &lt;CODE&gt;AND&lt;/CODE&gt; in  searches if you want a boolean  comparison.&lt;/LI&gt;
&lt;LI&gt;Your search does not yield   a field  named  &lt;CODE&gt;AlertType&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;What this means is that your custom search will never return anything - so your alert will not fire. &lt;BR /&gt;
As far as I can tell, you don't need a custom search for your alert at all. Change your settings as&lt;BR /&gt;
suggested in the first paragraph and see what happens.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 23:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207182#M60412</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-11-02T23:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert not triggered even though there are results that meet the criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207183#M60413</link>
      <description>&lt;P&gt;Thank you, appreciate your help on trying to help me. My alert is fixed now. I had a false alarm. Thanks everyone for your inputs.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 16:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-alert-not-triggered-even-though-there-are-results-that/m-p/207183#M60413</guid>
      <dc:creator>kotig</dc:creator>
      <dc:date>2016-11-03T16:09:01Z</dc:date>
    </item>
  </channel>
</rss>

