<?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: Schedule alert with different cron condition in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485967#M8588</link>
    <description>&lt;P&gt;Hello @manjunathmeti @rich7177 &lt;/P&gt;

&lt;P&gt;Thanks for comments, few questions:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;As per splunk documentation sunday is treated as 0 &lt;CODE&gt;Day of the week: 0-6 (where 0 = Sunday)&lt;/CODE&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Alert/CronExpressions"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/Alert/CronExpressions&lt;/A&gt;&lt;BR /&gt;
is this not correct?&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;can i not set crons for a single alert like &lt;CODE&gt;*/15 17-8,0-23 * * 1-4,5-0&lt;/CODE&gt; over here &lt;A href="https://share.getcloudapp.com/xQugnl7g"&gt;https://share.getcloudapp.com/xQugnl7g&lt;/A&gt;&lt;BR /&gt;
OR&lt;BR /&gt;
Do i have to set two separate alerts (for same conditions i.e. to trigger at 50%) with separate crons one like &lt;CODE&gt;*/15 17-8 * * 1-4&lt;/CODE&gt; and &lt;CODE&gt;*/15 0-23 * * 5-0&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Thu, 05 Mar 2020 02:18:19 GMT</pubDate>
    <dc:creator>praddasg</dc:creator>
    <dc:date>2020-03-05T02:18:19Z</dc:date>
    <item>
      <title>Schedule alert with different cron condition</title>
      <link>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485964#M8585</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I have alert policy which triggers at 10% every 15 minutes. The current expression for this is &lt;CODE&gt;*/15 * * * *&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Because overnight and on the weekend the transactions are less hence want to use a different condition i.e. trigger at 50%. &lt;BR /&gt;
So the question is &lt;BR /&gt;
1. For the existing 10%, i want to schedule only for weekday from morning 8 AM to 5 PM. Will this be the cron expression &lt;CODE&gt;*/15 8-17 * * 1-4&lt;/CODE&gt;&lt;BR /&gt;
2. For the new 50% i want to schedule 5PM to next day 8 AM and all day long over the weekend. Will this be the cron expression &lt;CODE&gt;*/15 17-8,0-23 * * 1-4,5-0&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 20:43:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485964#M8585</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-03-04T20:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule alert with different cron condition</title>
      <link>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485965#M8586</link>
      <description>&lt;P&gt;Almost.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;*/15 8-17 * * 1-4&lt;/CODE&gt; will actually only do it Monday to Thursday.  You'd want 1-5 to do Monday to Friday.  Like &lt;CODE&gt;*/15 8-17 * * 1-4&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;For your after hours, I think you should separate it into &lt;CODE&gt;*/15 17-23,0-8 * * 1-5&lt;/CODE&gt; for weekdays after hours, then &lt;CODE&gt;*/15 * * * 6,7&lt;/CODE&gt; for the weekends.  &lt;/P&gt;

&lt;P&gt;And that would be your three schedules - the after hours and weekends one would just use the same report cloned.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 22:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485965#M8586</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2020-03-04T22:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule alert with different cron condition</title>
      <link>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485966#M8587</link>
      <description>&lt;P&gt;Hi @praddasg,&lt;/P&gt;

&lt;P&gt;1.This is correct if your weekdays doesn't include Friday. If it includes Friday then change it to:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;*/15 8-17 * * 1-5&lt;/STRONG&gt;  &lt;STRONG&gt;(Every 15 minutes, between 08:00 AM and 05:59 PM, Monday through Friday)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;2.It'll better if you write 2 cron expressions for 50% alert.&lt;/P&gt;

&lt;H3&gt;Cron 1:&lt;/H3&gt;

&lt;P&gt;&lt;STRONG&gt;*/15 18-7 * * 1-4&lt;/STRONG&gt;    &lt;STRONG&gt;(Every 15 minutes, between 06:00 PM and 07:59 AM, Monday through Thursday)&lt;/STRONG&gt;    &lt;/P&gt;

&lt;H4&gt;OR&lt;/H4&gt;

&lt;P&gt;&lt;STRONG&gt;*/15 18-7 * * 1-5&lt;/STRONG&gt;    &lt;STRONG&gt;(Every 15 minutes, between 06:00 PM and 07:59 AM, Monday through Friday)&lt;/STRONG&gt;    &lt;/P&gt;

&lt;H3&gt;Cron 2:&lt;/H3&gt;

&lt;P&gt;&lt;STRONG&gt;*/15 0-23 * * 5-0&lt;/STRONG&gt;  &lt;STRONG&gt;(Every 15 minutes, between 12:00 AM and 11:59 PM, Friday through Sunday)&lt;/STRONG&gt;&lt;/P&gt;

&lt;H4&gt;OR&lt;/H4&gt;

&lt;P&gt;&lt;STRONG&gt;*/15 0-23 * * 6-0&lt;/STRONG&gt;  &lt;STRONG&gt;(Every 15 minutes, between 12:00 AM and 11:59 PM, Saturday through Sunday)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 22:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485966#M8587</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-04T22:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule alert with different cron condition</title>
      <link>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485967#M8588</link>
      <description>&lt;P&gt;Hello @manjunathmeti @rich7177 &lt;/P&gt;

&lt;P&gt;Thanks for comments, few questions:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;As per splunk documentation sunday is treated as 0 &lt;CODE&gt;Day of the week: 0-6 (where 0 = Sunday)&lt;/CODE&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Alert/CronExpressions"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/Alert/CronExpressions&lt;/A&gt;&lt;BR /&gt;
is this not correct?&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;can i not set crons for a single alert like &lt;CODE&gt;*/15 17-8,0-23 * * 1-4,5-0&lt;/CODE&gt; over here &lt;A href="https://share.getcloudapp.com/xQugnl7g"&gt;https://share.getcloudapp.com/xQugnl7g&lt;/A&gt;&lt;BR /&gt;
OR&lt;BR /&gt;
Do i have to set two separate alerts (for same conditions i.e. to trigger at 50%) with separate crons one like &lt;CODE&gt;*/15 17-8 * * 1-4&lt;/CODE&gt; and &lt;CODE&gt;*/15 0-23 * * 5-0&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 05 Mar 2020 02:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485967#M8588</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-03-05T02:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule alert with different cron condition</title>
      <link>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485968#M8589</link>
      <description>&lt;P&gt;Hi @praddasg,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Yes 0 is Sunday in Day of the week: 0-6.&lt;/LI&gt;
&lt;LI&gt;You need to set two separate alerts (for same conditions i.e. to trigger at 50%) with separate crons one like  */15 17-8 * * 1-4 and */15 0-23 * * 5-0&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 05 Mar 2020 04:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Schedule-alert-with-different-cron-condition/m-p/485968#M8589</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-05T04:01:03Z</dc:date>
    </item>
  </channel>
</rss>

