<?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: Alert help needed - Filtered events are still appearing in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149105#M2411</link>
    <description>&lt;P&gt;You are trying to do the same thresh-holding work twice: once in your search and once in your alert trigger.  You need to pick one place or the other.  So let's keep your search exactly as it is.  In this case, you need your alert &lt;CODE&gt;Trigger condition&lt;/CODE&gt; to be &lt;CODE&gt;Number of Results is Greater than 0&lt;/CODE&gt;.  If you think about it, you will see what I mean but if not, just trust me and configure it this way and it will work.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Aug 2015 17:22:18 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-08-01T17:22:18Z</dc:date>
    <item>
      <title>Alert help needed - Filtered events are still appearing</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149103#M2409</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I only want my alert to trigger if a particular field value has failed 2 or more times in the last 50 occurances.  My current search is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=mySource ST_Script="myScript.py" ST_LogType="Step Log" | dedup 50 ST_Comment | search ST_Status=Fail | stats count AS FailuresInLast50 by ST_Comment | where FailuresInLast50 &amp;gt;= 2  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the statistics tab this search appears to do what I wanted because only fields with 2 or more failures are appearing:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/520iCD3C1F49B2EEA65C/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;However when I go to create my alert condition (FailuresInLast50 count &amp;gt;= 2) I get an error because it can't parse my alert condition. I assume I'm going about this in slightly the wrong way, so some guidance would be much appreciated.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 09:21:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149103#M2409</guid>
      <dc:creator>606866581</dc:creator>
      <dc:date>2015-07-31T09:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Alert help needed - Filtered events are still appearing</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149104#M2410</link>
      <description>&lt;P&gt;You asked all valued that are 2 or higher, therefore having events with  where FailuresInLast50=2 is expected.&lt;BR /&gt;
Are you sure tat all your values are not 2 ?&lt;BR /&gt;
Can you run the same search without the "where" condition then see if you have values &amp;gt;2&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 19:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149104#M2410</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-07-31T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alert help needed - Filtered events are still appearing</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149105#M2411</link>
      <description>&lt;P&gt;You are trying to do the same thresh-holding work twice: once in your search and once in your alert trigger.  You need to pick one place or the other.  So let's keep your search exactly as it is.  In this case, you need your alert &lt;CODE&gt;Trigger condition&lt;/CODE&gt; to be &lt;CODE&gt;Number of Results is Greater than 0&lt;/CODE&gt;.  If you think about it, you will see what I mean but if not, just trust me and configure it this way and it will work.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2015 17:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149105#M2411</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-01T17:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alert help needed - Filtered events are still appearing</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149106#M2412</link>
      <description>&lt;P&gt;LOL. Sometimes that's how you have to explain it.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2015 22:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149106#M2412</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2015-08-01T22:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Alert help needed - Filtered events are still appearing</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149107#M2413</link>
      <description>&lt;P&gt;Thanks for your answer, I'll give it a go and report back!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 08:12:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-help-needed-Filtered-events-are-still-appearing/m-p/149107#M2413</guid>
      <dc:creator>606866581</dc:creator>
      <dc:date>2015-08-03T08:12:43Z</dc:date>
    </item>
  </channel>
</rss>

