<?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: cron notation for Bi-Weekly schedule alert in Splunk in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135353#M2167</link>
    <description>&lt;P&gt;Thank you Mus, I will try&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2015 07:46:52 GMT</pubDate>
    <dc:creator>rsathish47</dc:creator>
    <dc:date>2015-02-11T07:46:52Z</dc:date>
    <item>
      <title>cron notation for Bi-Weekly schedule alert in Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135351#M2165</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Cron notation for Bi-Weekly schedule alert in Splunk  ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; * * */2 * * === Is this works?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Sathish R&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 05:44:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135351#M2165</guid>
      <dc:creator>rsathish47</dc:creator>
      <dc:date>2015-02-11T05:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: cron notation for Bi-Weekly schedule alert in Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135352#M2166</link>
      <description>&lt;P&gt;Hi rsathish47,&lt;/P&gt;

&lt;P&gt;No, because the third &lt;CODE&gt;*&lt;/CODE&gt; does not represent week. &lt;/P&gt;

&lt;P&gt;The following cron parameters:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* * * * *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;correspond to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;minute hour day month day-of-week
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is un-tested, but I think something like this could work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;00 06 1-7,15-21 * 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would run every second week on Monday at 06:00 am.&lt;/P&gt;

&lt;P&gt;Hope this helps...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 06:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135352#M2166</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-02-11T06:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: cron notation for Bi-Weekly schedule alert in Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135353#M2167</link>
      <description>&lt;P&gt;Thank you Mus, I will try&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 07:46:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135353#M2167</guid>
      <dc:creator>rsathish47</dc:creator>
      <dc:date>2015-02-11T07:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: cron notation for Bi-Weekly schedule alert in Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135354#M2168</link>
      <description>&lt;P&gt;That does not make it Bi-weekly, does it?&lt;BR /&gt;
Since we have specified 1-7, 15-21 as the days, consecutive reports may have a gap of 3 weeks.&lt;BR /&gt;
Take the month of November 2015. The report will run on &lt;BR /&gt;
2nd Nov, 16th November (2 weeks between 2nd Nov and 16th Nov) and then only on 7th December (3 weeks between 16th Nov and 7th Dec)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 18:40:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135354#M2168</guid>
      <dc:creator>nivedita_viswan</dc:creator>
      <dc:date>2015-11-10T18:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: cron notation for Bi-Weekly schedule alert in Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135355#M2169</link>
      <description>&lt;P&gt;Well, this is a generic example and does not cover all month. You have to adjust it to your needs, if it really has to be every second week, because the interval will change over the months and this would end up in some &lt;CODE&gt;if-then&lt;/CODE&gt; crontab which will be not easy to manage.&lt;BR /&gt;&lt;BR /&gt;
For example one for January 2016:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; * 06 1-7,15-21,29-31 1 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But for February 2016 only run it like this, if it was last run in January on the 30th:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* 06 12-19 2 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;otherwise run it like this (based on January / February 2014 combination):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* 06 1-7,15-21 2 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Good luck in keeping this clean and I'm sure if you search hard enough there are even more confusing combinations possible.&lt;/P&gt;

&lt;P&gt;Make it easy, simple and straight forward; run it forthrightly &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* 06 1,15 * *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Yes, I know this will also not provide a precise 2 weeks interval!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 19:52:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/cron-notation-for-Bi-Weekly-schedule-alert-in-Splunk/m-p/135355#M2169</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-11-10T19:52:49Z</dc:date>
    </item>
  </channel>
</rss>

