<?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 schedule in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657213#M17341</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/88735"&gt;@efavreau&lt;/a&gt;&amp;nbsp;You're right about&amp;nbsp;&lt;SPAN&gt;21:00 Sunday GMT would be 5:00 Monday BJT but if you see the cron, it is running from 0-13 on a Sunday which is incorrect and we need to exclude that.&lt;BR /&gt;How can we exclude this extra cron schedule.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 14:41:03 GMT</pubDate>
    <dc:creator>av_</dc:creator>
    <dc:date>2023-09-11T14:41:03Z</dc:date>
    <item>
      <title>cron schedule: How can we cutomise the cron?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657186#M17336</link>
      <description>&lt;P&gt;My splunk instance is running in GMT and I want to schedule an alert as per China time.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;*/5 21-23,0-13 * * 0-5 This is the cron. The logic is to trigger the alert every 5minutes from Monday to friday 5AM till 10 PM china Time but the alert is getting triggered on Sunday as well.&lt;BR /&gt;&lt;/SPAN&gt;How can we cutomise the cron?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:42:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657186#M17336</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2023-09-11T16:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: cron schedule</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657204#M17337</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238661"&gt;@av_&lt;/a&gt; !&lt;/P&gt;&lt;P&gt;There's a tool some of us use to provide a gut-check, crontab guru (not affiliated in any way with it - just a user),&amp;nbsp; which I used on the cron you provided:&lt;BR /&gt;&lt;A href="https://crontab.guru/#*/5_21-23,0-13_*_*_0-5" target="_blank"&gt;https://crontab.guru/#*/5_21-23,0-13_*_*_0-5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The tool's assessment, is the cron runs on Sundays. If we breakdown the cron, the last part (0-5) sets the days of the week. So it we try changing that to 1-5, it appears it may work for you.&lt;/P&gt;&lt;P&gt;*/5 21-23,0-13 * * 1-5&lt;/P&gt;&lt;P&gt;There are other tools out there. There's nothing magical about what I used, but I like it for people who are unfamiliar with cron. Good luck!&lt;BR /&gt;&lt;BR /&gt;If this helped you, please provide it a thumbs up.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 13:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657204#M17337</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2023-09-11T13:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: cron schedule</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657206#M17338</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238661"&gt;@av_&lt;/a&gt; !&lt;/P&gt;&lt;P&gt;To double-check cron expressions, I may resort to using a tool like crontab guru. When I put the expression you provided in there, it suggests the 0-5 part of the cron expression includes Sunday.&lt;BR /&gt;&lt;A href="https://crontab.guru/#*/5_21-23,0-13_*_*_0-5" target="_blank"&gt;https://crontab.guru/#*/5_21-23,0-13_*_*_0-5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So if we change that part from 0-5 to 1-5, it appears that may work for you.&lt;BR /&gt;&lt;BR /&gt;Good luck! If you find this hopeful please give it a thumbs up!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 14:06:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657206#M17338</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2023-09-11T14:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: cron schedule</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657207#M17339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/88735"&gt;@efavreau&lt;/a&gt;,&amp;nbsp;changing it from 1-5 would miss some alerts which are supposed to trigger monday morning. As I said there's a time difference. The splunk instance is in GMT while the alerts are being scheduled for China Time.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 14:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657207#M17339</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2023-09-11T14:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: cron schedule</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657210#M17340</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238661"&gt;@av_&lt;/a&gt; !&lt;/P&gt;&lt;P&gt;Your expression looks correct to account for the 8 hour difference, assuming the cron job is executing in your timezone. 21:00 Sunday GMT would be 5:00 Monday BJT. So if that is not working as expected, then the cron job may not be running out of your GMT timezone.&lt;BR /&gt;&lt;BR /&gt;If it's running out of the BJT timezone, then the cron needs to be re-written to: */5 5-22 * * 1-5&lt;BR /&gt;&lt;BR /&gt;Did you test that? What was the result?&lt;BR /&gt;&lt;BR /&gt;If that also isn't working, then more details are needed for people to figure out why the cron is executing in neither timezone&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 14:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657210#M17340</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2023-09-11T14:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: cron schedule</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657213#M17341</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/88735"&gt;@efavreau&lt;/a&gt;&amp;nbsp;You're right about&amp;nbsp;&lt;SPAN&gt;21:00 Sunday GMT would be 5:00 Monday BJT but if you see the cron, it is running from 0-13 on a Sunday which is incorrect and we need to exclude that.&lt;BR /&gt;How can we exclude this extra cron schedule.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 14:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657213#M17341</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2023-09-11T14:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: cron schedule</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657222#M17342</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238661"&gt;@av_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the additional detail. Makes sense. I would handle that as two separate jobs.&lt;BR /&gt;&lt;BR /&gt;I would say this is the solution and can be cleanly executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:05:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/cron-schedule-How-can-we-cutomise-the-cron/m-p/657222#M17342</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2023-09-11T16:05:03Z</dc:date>
    </item>
  </channel>
</rss>

