<?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 alert triggering false positives? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339643#M5994</link>
    <description>&lt;P&gt;@nmayafit - Glad to hear you found the solution to your question. Please don't forget to click "Accept" to resolve your post so that others can easily find it. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2017 18:49:53 GMT</pubDate>
    <dc:creator>aaraneta_splunk</dc:creator>
    <dc:date>2017-04-20T18:49:53Z</dc:date>
    <item>
      <title>Why is my alert triggering false positives?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339635#M5986</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a very strange issue and I'm trying to solve it in the last week with no luck.&lt;BR /&gt;
I have an alert created from a percentage error rate of my server.&lt;BR /&gt;
The search is simple:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=*-prod* source="/var/log/xxx"  | stats count as All, count(eval(level="ERROR")) as ERROR | eval Alert=((ERROR/All)*100) | table Alert | where Alert &amp;gt;= 0.3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, the alert is triggering false positive all the time. &lt;BR /&gt;
Now, what strange is that when I push the "View Results" from email I see the false result (e.g 0.4), but when I just search the same search (just hit enter in the search field right after) I then get the right result (e.g 0.1).&lt;/P&gt;

&lt;P&gt;These are my alert configurations:&lt;BR /&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/2807i5F0EC14FEC5EDA5B/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;Is this a bug? Am I doing something wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 20:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339635#M5986</guid>
      <dc:creator>nmayafit</dc:creator>
      <dc:date>2017-04-19T20:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert triggering false positives?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339636#M5987</link>
      <description>&lt;P&gt;Your alerts would be looking at a particular time range. Try to run the search manually for exactly same time range with hardcoded dates. Like if your alert ran at 4/19/2017 1:00 PM looking last 60 minutes, run the search for fixed time range of 4/19/2017 12:00 PM to 4/19/2017 1:00 PM and compare result. &lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 20:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339636#M5987</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-19T20:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert triggering false positives?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339637#M5988</link>
      <description>&lt;P&gt;The alert and the manual search both look at the last 2 hours. &lt;BR /&gt;
As I said, I take the exact search that I get from the "View Results" and run it again. Same query, same time range. Different results. &lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 21:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339637#M5988</guid>
      <dc:creator>nmayafit</dc:creator>
      <dc:date>2017-04-19T21:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert triggering false positives?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339638#M5989</link>
      <description>&lt;P&gt;You get a summary line just below the search text box in the format "nnnnn events (xxxxstart_datexxx to yyyyend_dateyyyy)" . Check if they both are exactly same. Since you're using relative time, it may change (last 2hrs now will be different if you run it after 5 min from now). &lt;BR /&gt;
If that is same, there may be some more events being ingested (success events) between the alert schedule and you manually running causing Error percent to go down. I would first eliminate timerange mismatch and they troubleshoot further.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:45:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339638#M5989</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T13:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert triggering false positives?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339639#M5990</link>
      <description>&lt;P&gt;When I get from the "view results" it says only 1 result. When I do the same search again it gives me millions. &lt;BR /&gt;
How can it be?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 03:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339639#M5990</guid>
      <dc:creator>nmayafit</dc:creator>
      <dc:date>2017-04-20T03:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert triggering false positives?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339640#M5991</link>
      <description>&lt;P&gt;The clicking of "view result" result load the result from dispatch directory which it finds 1 events (output of stats). The re-run of the search scans all relative events from base search hence that higher count. Do the time range matches when you click the "view results" versus running search again?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 04:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339640#M5991</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-20T04:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert triggering false positives?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339641#M5992</link>
      <description>&lt;P&gt;I see the same time range on both. &lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 05:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339641#M5992</guid>
      <dc:creator>nmayafit</dc:creator>
      <dc:date>2017-04-20T05:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert triggering false positives?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339642#M5993</link>
      <description>&lt;P&gt;Update: I found that the problem is that I used a real time schedule. When I changed it to cron schedule (every min) everything started working fine.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339642#M5993</guid>
      <dc:creator>nmayafit</dc:creator>
      <dc:date>2017-04-20T15:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert triggering false positives?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339643#M5994</link>
      <description>&lt;P&gt;@nmayafit - Glad to hear you found the solution to your question. Please don't forget to click "Accept" to resolve your post so that others can easily find it. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 18:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339643#M5994</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-04-20T18:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my alert triggering false positives?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339644#M5995</link>
      <description>&lt;P&gt;Hi Techies,&lt;/P&gt;

&lt;P&gt;I am facing same issue and with many alerts. But I don't have any of them set to Real Time. All are set to cron only. &lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 09:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-alert-triggering-false-positives/m-p/339644#M5995</guid>
      <dc:creator>bishtk</dc:creator>
      <dc:date>2018-10-31T09:17:26Z</dc:date>
    </item>
  </channel>
</rss>

