<?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 Customize time for alerts in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Customize-time-for-alerts/m-p/34687#M366</link>
    <description>&lt;P&gt;Hello &lt;/P&gt;

&lt;P&gt;I have a alert running for every 5 mins to check the service status and alert when it's STOPPED. Everyday from 3:15 to 4:15 all the services will be STOPPED. Is there anyway that I can make that search not to run for that 1 hour and stop sending emails. As we all know that services will be down for sure in that 1 hour period we don't need to get alerted for that 1 hour. &lt;/P&gt;

&lt;P&gt;Any ideas&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2013 15:18:36 GMT</pubDate>
    <dc:creator>theouhuios</dc:creator>
    <dc:date>2013-05-15T15:18:36Z</dc:date>
    <item>
      <title>Customize time for alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Customize-time-for-alerts/m-p/34687#M366</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;

&lt;P&gt;I have a alert running for every 5 mins to check the service status and alert when it's STOPPED. Everyday from 3:15 to 4:15 all the services will be STOPPED. Is there anyway that I can make that search not to run for that 1 hour and stop sending emails. As we all know that services will be down for sure in that 1 hour period we don't need to get alerted for that 1 hour. &lt;/P&gt;

&lt;P&gt;Any ideas&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2013 15:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Customize-time-for-alerts/m-p/34687#M366</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2013-05-15T15:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Customize time for alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Customize-time-for-alerts/m-p/34688#M367</link>
      <description>&lt;P&gt;Hi Theo&lt;/P&gt;

&lt;P&gt;If your server was down for a clean hour, it would be a simple task to use cron to schedule it. For example the following would work every 5 mins from midnight to 2:55 and then 4:00 onwards. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*/5 0-2,4-24 * * *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For your timing, this is not so simple. I would normally use the &lt;CODE&gt;date_hour&lt;/CODE&gt; and &lt;CODE&gt;date_minute&lt;/CODE&gt; fields to calculate the time but your report may not have them.  What you could do is modify the search by adding the following at the end of the search.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval timeInMin=(now()-relative_time(now(), "@d"))/60 | where (timeInMin &amp;lt; 3*60+14) OR (timeInMin &amp;gt; 4*60+16)| fields - timeInMin&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This would delete any results if the time was between 3:15 and 4:15. If this doesn't work, please tell us how you have your alert set up.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2013 20:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Customize-time-for-alerts/m-p/34688#M367</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2013-05-15T20:16:31Z</dc:date>
    </item>
  </channel>
</rss>

