<?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 write cron to schedule for an alert to trigger during last day of the month? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-write-cron-to-schedule-for-an-alert-to-trigger-during/m-p/498967#M8881</link>
    <description>&lt;P&gt;Using cron job generator like crontab-generator.org should guide you set cron job correctly.&lt;/P&gt;</description>
    <pubDate>Sun, 16 Feb 2020 14:02:59 GMT</pubDate>
    <dc:creator>larry02</dc:creator>
    <dc:date>2020-02-16T14:02:59Z</dc:date>
    <item>
      <title>How to write cron to schedule for an alert to trigger during last day of the month?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-write-cron-to-schedule-for-an-alert-to-trigger-during/m-p/498965#M8879</link>
      <description>&lt;P&gt;We have a requirement to extract all the admin users and give the report on last day of the month. I have the query to extract the admin users list from REST api which is currently triggered at 28th of every month considering Feb month. &lt;BR /&gt;
Please help to write a cron for last day every month. If cron is not there (as I saw in many questions) please let me know what else can I write in my query to get the requirement complete.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 07:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-write-cron-to-schedule-for-an-alert-to-trigger-during/m-p/498965#M8879</guid>
      <dc:creator>gndivya</dc:creator>
      <dc:date>2020-01-30T07:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to write cron to schedule for an alert to trigger during last day of the month?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-write-cron-to-schedule-for-an-alert-to-trigger-during/m-p/498966#M8880</link>
      <description>&lt;P&gt;Crontab:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1: Minute (0-59)
2: Hours (0-23)
3: Day (0-31)
4: Month (0-12 [12 == December])
5: Day of the week(0-7 [7 or 0 == sunday])
/path/to/command – Script or command name to schedule
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I see. I recommend, Create three.&lt;BR /&gt;
1 the day of month end is "30" &lt;BR /&gt;
2 the day of month end is "31"&lt;BR /&gt;
3 Feb&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"31" :
1 0 * 31 1,3,5,7,8,10,12 *
"30" :
1 0 * 30 4,6,9,11 *
"feb"
1 0 * 28 2 *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;like that.&lt;/P&gt;

&lt;P&gt;You can't do anything with just one.&lt;BR /&gt;
cf. &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Alert/CronExpressions"&gt;CronExpressions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 08:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-write-cron-to-schedule-for-an-alert-to-trigger-during/m-p/498966#M8880</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-30T08:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to write cron to schedule for an alert to trigger during last day of the month?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-write-cron-to-schedule-for-an-alert-to-trigger-during/m-p/498967#M8881</link>
      <description>&lt;P&gt;Using cron job generator like crontab-generator.org should guide you set cron job correctly.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 14:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-write-cron-to-schedule-for-an-alert-to-trigger-during/m-p/498967#M8881</guid>
      <dc:creator>larry02</dc:creator>
      <dc:date>2020-02-16T14:02:59Z</dc:date>
    </item>
  </channel>
</rss>

