<?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 looking for no records over 6 hour time frame will not fire in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355340#M6283</link>
    <description>&lt;P&gt;What  I understood from you question is, you need to trigger alert, when you are not getting any output for your base query. The below query may serve your need. And set the Trigger Conditions as Trigger Alert when ==&amp;gt; Number of results is greater than 0.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=scheduler savedsearch_name="YourAlertNameHere" OR your base query earliest=-6h@h latest=@h
| stats count 
| search count=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Dec 2017 22:45:12 GMT</pubDate>
    <dc:creator>Kwip</dc:creator>
    <dc:date>2017-12-22T22:45:12Z</dc:date>
    <item>
      <title>Alert looking for no records over 6 hour time frame will not fire</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355334#M6277</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;
still a noob at splunk&lt;/P&gt;

&lt;P&gt;I have this alert that i can not get to fire&lt;/P&gt;

&lt;P&gt;the goal is , to search for a term in the last 6 hours and if no records are found fire the alert&lt;/P&gt;

&lt;P&gt;1) in the alerts page i "open in search" this is my search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="X-TASKMAN1" auto_run.php "thread -&amp;gt; 1 finished" earliest=-6h@h latest=@h
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this appears to return records when it should and does not when there are none&lt;/P&gt;

&lt;P&gt;2) in the edit alert dialog i am trying to fire this alert when it finds no records&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/4053i9F4C473E6CF2594F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 14:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355334#M6277</guid>
      <dc:creator>paries</dc:creator>
      <dc:date>2017-12-21T14:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alert looking for no records over 6 hour time frame will not fire</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355335#M6278</link>
      <description>&lt;P&gt;You're query is looking for last 6 hours and you're running the alert (schedule of it) once a day 4:00AM in the morning. Is that expected or you need the alert to run every 6 hours?. The alert would run at 4:00 AM. &lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 19:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355335#M6278</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-21T19:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alert looking for no records over 6 hour time frame will not fire</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355336#M6279</link>
      <description>&lt;P&gt;i want it to run once a day @ 4:00am and look back 6 hours.&lt;BR /&gt;
thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 20:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355336#M6279</guid>
      <dc:creator>paries</dc:creator>
      <dc:date>2017-12-21T20:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alert looking for no records over 6 hour time frame will not fire</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355337#M6280</link>
      <description>&lt;P&gt;Did you check if it was even ran at scheduled time?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=scheduler savedsearch_name="YourAlertNameHere" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Dec 2017 20:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355337#M6280</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-21T20:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alert looking for no records over 6 hour time frame will not fire</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355338#M6281</link>
      <description>&lt;P&gt;yes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;12-21-2017 04:00:03.796 -0700 INFO  SavedSplunker - savedsearch_id="nobody;search;AP Thread Test", search_type="scheduled", user="dev", app="search", savedsearch_name="AP Thread Test", priority=default, status=success, digest_mode=1, scheduled_time=1513854000, window_time=0, dispatch_time=1513854000, run_time=0.520, result_count=0, alert_actions="", sid="scheduler__dev__search__RMD578055006f73a66bd_at_1513854000_3557", suppressed=0, thread_id="AlertNotifierWorker-1"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Dec 2017 20:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355338#M6281</guid>
      <dc:creator>paries</dc:creator>
      <dc:date>2017-12-21T20:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Alert looking for no records over 6 hour time frame will not fire</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355339#M6282</link>
      <description>&lt;P&gt;Paries.  I've never tried alerting on 0 results, but what I do for that is to append a single result and look for just 1&lt;/P&gt;

&lt;P&gt;base search&lt;BR /&gt;
| append [|  makeresults |  eval msg="nothing else found"]&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 03:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355339#M6282</guid>
      <dc:creator>MonkeyK</dc:creator>
      <dc:date>2017-12-22T03:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Alert looking for no records over 6 hour time frame will not fire</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355340#M6283</link>
      <description>&lt;P&gt;What  I understood from you question is, you need to trigger alert, when you are not getting any output for your base query. The below query may serve your need. And set the Trigger Conditions as Trigger Alert when ==&amp;gt; Number of results is greater than 0.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=scheduler savedsearch_name="YourAlertNameHere" OR your base query earliest=-6h@h latest=@h
| stats count 
| search count=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Dec 2017 22:45:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355340#M6283</guid>
      <dc:creator>Kwip</dc:creator>
      <dc:date>2017-12-22T22:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Alert looking for no records over 6 hour time frame will not fire</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355341#M6284</link>
      <description>&lt;P&gt;@paris, Accept the answer if it is working fine. Let others find the relevant answer. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 16:23:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-looking-for-no-records-over-6-hour-time-frame-will-not/m-p/355341#M6284</guid>
      <dc:creator>Kwip</dc:creator>
      <dc:date>2017-12-27T16:23:53Z</dc:date>
    </item>
  </channel>
</rss>

