<?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: Splunk alert returns 0 events in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420985#M7342</link>
    <description>&lt;P&gt;After scratching my head for a couple of hours - decided to give up on real-time search. &lt;/P&gt;

&lt;P&gt;Now I run a scheduled search every hour and in my search query, I added the keyword "earliest=-1h"&lt;/P&gt;

&lt;P&gt;The alerts are working fine now.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 00:26:04 GMT</pubDate>
    <dc:creator>warlock2204</dc:creator>
    <dc:date>2019-03-05T00:26:04Z</dc:date>
    <item>
      <title>Splunk alert returns 0 events</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420981#M7338</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I've created an alert which is supposed to trigger when events are less than 25. Sometimes it triggers correctly, but other time it returns 0 events in the last hour(real time). &lt;/P&gt;

&lt;P&gt;When I click on view results, it displays 0 events, but if i run the query manually, there will be a lot of events during the same time range.&lt;/P&gt;

&lt;P&gt;Any idea of how to fix the false positive alerts?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 19:22:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420981#M7338</guid>
      <dc:creator>warlock2204</dc:creator>
      <dc:date>2019-03-04T19:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk alert returns 0 events</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420982#M7339</link>
      <description>&lt;P&gt;Consider converting it to a historical search from real-time search (they are inefficient).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 21:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420982#M7339</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-03-04T21:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk alert returns 0 events</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420983#M7340</link>
      <description>&lt;P&gt;To somesoni2's point - when you say "(real time)" are you indicating you are running this as a real time search or more like when you run the search over the last hour's worth of events?&lt;/P&gt;

&lt;P&gt;Assuming you aren't running this as a real time search, which I wouldn't, there could be a delay in data ingestion. Try running something like the following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;where the data is&amp;gt; sourcetype=&amp;lt;what the data is&amp;gt; | eval delta = _indextime - _time | timechart avg(delta) perc90(delta) max(delta)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since Splunk places events in their correct chronographical location it might be events are coming in after the search has run but before you manually go searching for them.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 21:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420983#M7340</guid>
      <dc:creator>mrunals</dc:creator>
      <dc:date>2019-03-04T21:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk alert returns 0 events</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420984#M7341</link>
      <description>&lt;P&gt;I'm running this as a real-time search to check events in the past 1 hour&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 23:16:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420984#M7341</guid>
      <dc:creator>warlock2204</dc:creator>
      <dc:date>2019-03-04T23:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk alert returns 0 events</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420985#M7342</link>
      <description>&lt;P&gt;After scratching my head for a couple of hours - decided to give up on real-time search. &lt;/P&gt;

&lt;P&gt;Now I run a scheduled search every hour and in my search query, I added the keyword "earliest=-1h"&lt;/P&gt;

&lt;P&gt;The alerts are working fine now.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 00:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420985#M7342</guid>
      <dc:creator>warlock2204</dc:creator>
      <dc:date>2019-03-05T00:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk alert returns 0 events</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420986#M7343</link>
      <description>&lt;P&gt;Be sure to click &lt;CODE&gt;Accept&lt;/CODE&gt; on your answer to close the question.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 04:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-alert-returns-0-events/m-p/420986#M7343</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-03-05T04:10:43Z</dc:date>
    </item>
  </channel>
</rss>

