<?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: Create alert - only during working hours in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34893#M369</link>
    <description>&lt;P&gt;You could refine your search using date_hour so it will only bring back results during business hours:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search terms) (date_hour &amp;gt; 8 AND date_hour &amp;lt; 17)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then schedule the search to run over whatever time frame you choose (half hour?) and configure your alerts. The search will only show results between 8am and 5 pm.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2011 12:18:41 GMT</pubDate>
    <dc:creator>ftk</dc:creator>
    <dc:date>2011-06-27T12:18:41Z</dc:date>
    <item>
      <title>Create alert - only during working hours</title>
      <link>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34892#M368</link>
      <description>&lt;P&gt;I need to create an alert which will only trigger during working hours - even if event happened during outside working hours.&lt;/P&gt;

&lt;P&gt;The alert should only trigger between 08:00 and 17:00  GMT.&lt;/P&gt;

&lt;P&gt;The alert is based on searching for Cxx002W. If this happens between 17:00 and 08:00 GMT  - the alert should not be triggered until 08:00 GMT.&lt;/P&gt;

&lt;P&gt;I can set up a search which run at 08:00 - and if any Cxx002W between 17:00 and 08:00 GMT - then alert is triggered.&lt;/P&gt;

&lt;P&gt;But what do I do during working hours?&lt;/P&gt;

&lt;P&gt;I.e. if Cxx002W occur at 11:45 GMT I need the alert to be triggered rigth away&lt;/P&gt;

&lt;P&gt;Do you have any good ideas? I want only to set up ONE alert&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2011 11:52:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34892#M368</guid>
      <dc:creator>JYTTEJ</dc:creator>
      <dc:date>2011-06-27T11:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert - only during working hours</title>
      <link>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34893#M369</link>
      <description>&lt;P&gt;You could refine your search using date_hour so it will only bring back results during business hours:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search terms) (date_hour &amp;gt; 8 AND date_hour &amp;lt; 17)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then schedule the search to run over whatever time frame you choose (half hour?) and configure your alerts. The search will only show results between 8am and 5 pm.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2011 12:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34893#M369</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-06-27T12:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert - only during working hours</title>
      <link>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34894#M370</link>
      <description>&lt;P&gt;Thanks - but this will only select on occurrences which happen between 08:00 and 17:00 - I also need to create an alert if this occurrence happen between 17:00 and 08:00 - but the alert should not be created until after 08:00&lt;/P&gt;

&lt;P&gt;So, if the occurrence happen at 01:00 - then the alert should be created at 08:00 the following morning.&lt;/P&gt;

&lt;P&gt;If the occurrence happen during day time (08:00 to 17:00) then the alert should be created immediately at scheduled time.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2011 12:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34894#M370</guid>
      <dc:creator>JYTTEJ</dc:creator>
      <dc:date>2011-06-27T12:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert - only during working hours</title>
      <link>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34895#M371</link>
      <description>&lt;P&gt;In that case add a second search that runs at 8am over the past 15 hours and alert on any results.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2011 12:44:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34895#M371</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-06-27T12:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert - only during working hours</title>
      <link>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34896#M372</link>
      <description>&lt;P&gt;if you do need to create two alerts for the same reason, but for different time ranges like this answer suggests, put your entire alert search string into a macro and then reference that macro from &lt;EM&gt;both&lt;/EM&gt; alerts. That way, if you need to change the alert conditions, both alerts are updated appropriately.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2011 13:39:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34896#M372</guid>
      <dc:creator>maverick</dc:creator>
      <dc:date>2011-06-27T13:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert - only during working hours</title>
      <link>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34897#M373</link>
      <description>&lt;P&gt;there is very littel traffic on this line. It is not necessary to take action on any incidents during evening/nigth time.This can wait until the following morning.&lt;BR /&gt;
During working hours we want to take action as soon as possible.&lt;/P&gt;

&lt;P&gt;This is the background&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2011 12:51:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Create-alert-only-during-working-hours/m-p/34897#M373</guid>
      <dc:creator>JYTTEJ</dc:creator>
      <dc:date>2011-06-29T12:51:00Z</dc:date>
    </item>
  </channel>
</rss>

