<?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 Expression for Scheduled Alerts in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Cron-Expression-for-Scheduled-Alerts/m-p/711419#M16269</link>
    <description>&lt;P&gt;This worked well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2025 22:03:05 GMT</pubDate>
    <dc:creator>richard8</dc:creator>
    <dc:date>2025-02-12T22:03:05Z</dc:date>
    <item>
      <title>Cron Expression for Scheduled Alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Cron-Expression-for-Scheduled-Alerts/m-p/711306#M16266</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Trying to configure an alert that runs on the first Sunday only of every month, specifically at 9:30am.&lt;BR /&gt;&lt;BR /&gt;I put this as the cron expression:&amp;nbsp;30 9 1-7 * 0&lt;/P&gt;&lt;P&gt;If I'm reading the documentation correctly, that should be it. However, the alert appears to be running every Sunday of every month instead of just the first Sunday of every month.&lt;/P&gt;&lt;P&gt;Am I doing something wrong? Can't figure it out....&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 19:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Cron-Expression-for-Scheduled-Alerts/m-p/711306#M16266</guid>
      <dc:creator>richard8</dc:creator>
      <dc:date>2025-02-11T19:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Expression for Scheduled Alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Cron-Expression-for-Scheduled-Alerts/m-p/711314#M16267</link>
      <description>&lt;P&gt;Its not possible within Splunk to have a crontab for the first Sunday of the month, however.. you might be able to run it every day for first 7 days of the month (`30 9 1-7 * *`) and add the following to your search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where strftime(now(),"%a")=="Sun"&lt;/LI-CODE&gt;&lt;P&gt;This will stop the search from continuing if it isnt Sunday...&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider accepting this answer or adding karma this answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 20:37:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Cron-Expression-for-Scheduled-Alerts/m-p/711314#M16267</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-02-11T20:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Expression for Scheduled Alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Cron-Expression-for-Scheduled-Alerts/m-p/711327#M16268</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276385"&gt;@richard8&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is your cron expression.&amp;nbsp;Your cron expression 30 9 1-7 * 0 is not quite right because it triggers on &lt;STRONG&gt;any date (1-7) that is a Sunday (0)&lt;/STRONG&gt;, meaning it runs on every Sunday within the first seven days of the month. However, if the 1st of the month is not a Sunday, it will still run on other Sundays within that range.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_0-1739337061495.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34461iB047EE4182F67FFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_0-1739337061495.png" alt="kiran_panchavat_0-1739337061495.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 05:11:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Cron-Expression-for-Scheduled-Alerts/m-p/711327#M16268</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-02-12T05:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Expression for Scheduled Alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Cron-Expression-for-Scheduled-Alerts/m-p/711419#M16269</link>
      <description>&lt;P&gt;This worked well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 22:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Cron-Expression-for-Scheduled-Alerts/m-p/711419#M16269</guid>
      <dc:creator>richard8</dc:creator>
      <dc:date>2025-02-12T22:03:05Z</dc:date>
    </item>
  </channel>
</rss>

