<?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 Splunk cron expression to accommodate our maintenance window in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372971#M6620</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have to schedule a Splunk alert. I want the alert to be triggered if no of results &amp;gt; 10, &lt;STRONG&gt;except during the maintenance window&lt;/STRONG&gt; given below,&lt;/P&gt;

&lt;P&gt;Monday to Sunday 4 AM to 6 AM &lt;BR /&gt;
Sunday morning . 00:00 to 6:AM&lt;/P&gt;

&lt;P&gt;What cron expression should I use?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
namritha&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2017 17:55:53 GMT</pubDate>
    <dc:creator>namrithadeepak</dc:creator>
    <dc:date>2017-08-17T17:55:53Z</dc:date>
    <item>
      <title>Splunk cron expression to accommodate our maintenance window</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372971#M6620</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have to schedule a Splunk alert. I want the alert to be triggered if no of results &amp;gt; 10, &lt;STRONG&gt;except during the maintenance window&lt;/STRONG&gt; given below,&lt;/P&gt;

&lt;P&gt;Monday to Sunday 4 AM to 6 AM &lt;BR /&gt;
Sunday morning . 00:00 to 6:AM&lt;/P&gt;

&lt;P&gt;What cron expression should I use?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
namritha&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 17:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372971#M6620</guid>
      <dc:creator>namrithadeepak</dc:creator>
      <dc:date>2017-08-17T17:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cron expression to accommodate our maintenance window</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372972#M6621</link>
      <description>&lt;P&gt;There's no good cron expression for this, as Splunk only allows a single schedule. &lt;/P&gt;

&lt;P&gt;the only way I've done safe work times before is using a lookup table, and referencing the date_day / date_hour default fields in it with a | where filter. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372972#M6621</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2020-09-29T15:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cron expression to accommodate our maintenance window</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372973#M6622</link>
      <description>&lt;P&gt;You didn't specify the frequency, so I'm going to assume every 5 minutes.&lt;/P&gt;

&lt;P&gt;Create two alerts using the same saved search, but you will have to use two different schedules:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*/5 0-3,6-23 * * 1-6
*/5 6-23 * * 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Aug 2017 18:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372973#M6622</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-08-17T18:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cron expression to accommodate our maintenance window</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372974#M6623</link>
      <description>&lt;P&gt;I believe you'd have option to either create two alerts (same search) with crons handling your maintenance window OR handle the maintenance window in the search itself. For option1 you can use two exact same search (different names of course) with following crons: (assuming  you run your alert every 10 mins)&lt;/P&gt;

&lt;P&gt;cron 1: &lt;CODE&gt;*/10 6-23 * * *&lt;/CODE&gt; (At every 10th minute past every hour from 6 through 23.)&lt;BR /&gt;
cron 2: &lt;CODE&gt;*/10 0-3 * * 1-6&lt;/CODE&gt; (At every 10th minute past every hour from 0 through 3 on every day-of-week from Monday through Saturday.)&lt;/P&gt;

&lt;P&gt;We'll need your full alert search with alert conditions to suggest something for option 2.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 18:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372974#M6623</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-17T18:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cron expression to accommodate our maintenance window</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372975#M6624</link>
      <description>&lt;P&gt;You have to use my "short-circuit" or "blackout" approach here, if you really have to keep it as a single search (my answer are the ones that are NOT accepted):&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/24824/can-i-set-a-blackout-period-for-a-scheduled-search-during-which-it-should-not-generate-alerts.html"&gt;https://answers.splunk.com/answers/24824/can-i-set-a-blackout-period-for-a-scheduled-search-during-which-it-should-not-generate-alerts.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-cron-expression-to-accommodate-our-maintenance-window/m-p/372975#M6624</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-18T01:37:30Z</dc:date>
    </item>
  </channel>
</rss>

