<?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: How to set up cron schedule every 5 mins everyday except between 4 am to 6am in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385538#M6770</link>
    <description>&lt;P&gt;Would this include 11pm to 12 am?&lt;BR /&gt;
And can you please share the reason for 0-3 ?&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jul 2019 22:44:54 GMT</pubDate>
    <dc:creator>shilpa02</dc:creator>
    <dc:date>2019-07-14T22:44:54Z</dc:date>
    <item>
      <title>How to set up cron schedule every 5 mins everyday except between 4 am to 6am</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385535#M6767</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
We have outage every morning between 4 am to 6am. Don't want the splunk logs to run between this time..&lt;BR /&gt;
I tried using this .&lt;BR /&gt;
*/5 0-4,6-23 * * *&lt;BR /&gt;
But this might not include 11pm to 12 am &lt;/P&gt;

&lt;P&gt;Please suggest &lt;BR /&gt;
Thanks &lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 05:01:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385535#M6767</guid>
      <dc:creator>shilpa02</dc:creator>
      <dc:date>2019-07-12T05:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up cron schedule every 5 mins everyday except between 4 am to 6am</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385536#M6768</link>
      <description>&lt;P&gt;That should work fine I would say, except that you need to change the 4 to a 3: &lt;CODE&gt;*/5 0-3,6-23 * * *&lt;/CODE&gt;. See for example: &lt;A href="http://cron.schlitt.info/index.php?cron=*%2F15+0-4%2C6-23+*+*+*&amp;amp;iterations=100&amp;amp;test=Test"&gt;http://cron.schlitt.info/index.php?cron=*%2F15+0-4%2C6-23+*+*+*&amp;amp;iterations=100&amp;amp;test=Test&lt;/A&gt;&lt;BR /&gt;
Note: I changed the example on that site to 15min, to show multiple days as that site is limited to 100 iterations for the test output.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 13:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385536#M6768</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-12T13:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up cron schedule every 5 mins everyday except between 4 am to 6am</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385537#M6769</link>
      <description>&lt;P&gt;Thanks Frank for the response.&lt;BR /&gt;
Can you please share the reason for 0-3 instead of 0-4..&lt;BR /&gt;
Also, would this include the ties between 11pm to 12 am as well ?&lt;BR /&gt;
Appreciate your response.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 22:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385537#M6769</guid>
      <dc:creator>shilpa02</dc:creator>
      <dc:date>2019-07-14T22:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up cron schedule every 5 mins everyday except between 4 am to 6am</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385538#M6770</link>
      <description>&lt;P&gt;Would this include 11pm to 12 am?&lt;BR /&gt;
And can you please share the reason for 0-3 ?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 22:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385538#M6770</guid>
      <dc:creator>shilpa02</dc:creator>
      <dc:date>2019-07-14T22:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up cron schedule every 5 mins everyday except between 4 am to 6am</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385539#M6771</link>
      <description>&lt;P&gt;I think you might be misunderstanding how cron syntax works.&lt;/P&gt;

&lt;P&gt;*/5 0-3 does not mean every 5 minutes from 0 till 3. It means every 5 minutes for any hour matching 0, 1, 2, 3. So effectively, that is 0:00 - 3:55. Same for the 23 at the end, that means last run of the day is at 23:55.&lt;/P&gt;

&lt;P&gt;And that is also why you should not include the 4, as that stretches it to run from 0:00 - 4:55.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 07:09:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385539#M6771</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-15T07:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up cron schedule every 5 mins everyday except between 4 am to 6am</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385540#M6772</link>
      <description>&lt;P&gt;Thank you so much Frank for the extended answers. This helps a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 21:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-cron-schedule-every-5-mins-everyday-except-between/m-p/385540#M6772</guid>
      <dc:creator>shilpa02</dc:creator>
      <dc:date>2019-07-15T21:54:10Z</dc:date>
    </item>
  </channel>
</rss>

