<?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 a crontab running from Monday 6 AM through Saturday 2 AM in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358521#M105986</link>
    <description>&lt;P&gt;@cusello Oh ! i wish splunk provides us a possibility to write them in one alert ..anyways thank you for letting me know..&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2017 19:40:15 GMT</pubDate>
    <dc:creator>srisplunk12</dc:creator>
    <dc:date>2017-03-17T19:40:15Z</dc:date>
    <item>
      <title>How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358515#M105980</link>
      <description>&lt;P&gt;How to write a crontab from Monday 6 AM through Saturday 2 AM to run once in a hour.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 15:29:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358515#M105980</guid>
      <dc:creator>srisplunk12</dc:creator>
      <dc:date>2017-03-16T15:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358516#M105981</link>
      <description>&lt;P&gt;Hi srisplunk12,&lt;BR /&gt;
it's not possible to write only one crontab for your need.&lt;BR /&gt;
The close solution could be to create three alerts with three complementary crontabs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;- 0 * * * 2-5 
- 0 6-23 * * 1 
- 0 0-1 * * 6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 15:48:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358516#M105981</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-03-16T15:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358517#M105982</link>
      <description>&lt;P&gt;thank you @Giuseppe ..but  can you please advice as to how do i put all four expressions in a single Splunk  alert ?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 17:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358517#M105982</guid>
      <dc:creator>srisplunk12</dc:creator>
      <dc:date>2017-03-16T17:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358518#M105983</link>
      <description>&lt;P&gt;Check out my (sadly unaccpted) answer here for how to do it:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/172541/is-it-possible-to-purposely-cause-a-scheduled-sear.html"&gt;https://answers.splunk.com/answers/172541/is-it-possible-to-purposely-cause-a-scheduled-sear.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 19:44:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358518#M105983</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-16T19:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358519#M105984</link>
      <description>&lt;P&gt;If the schedule you described is a mandatory rule, the only way is to create three equal alerts with the same search but a different schedule.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 08:09:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358519#M105984</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-03-17T08:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358520#M105985</link>
      <description>&lt;P&gt;Of use my answer which does it.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 18:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358520#M105985</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-17T18:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358521#M105986</link>
      <description>&lt;P&gt;@cusello Oh ! i wish splunk provides us a possibility to write them in one alert ..anyways thank you for letting me know..&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 19:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358521#M105986</guid>
      <dc:creator>srisplunk12</dc:creator>
      <dc:date>2017-03-17T19:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358522#M105987</link>
      <description>&lt;P&gt;It is possible.  Did you look at my answer?  Follow the link and that's how to do it.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 22:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358522#M105987</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-17T22:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358523#M105988</link>
      <description>&lt;P&gt;Hi srisplunk12,&lt;BR /&gt;
As suggested by Woodcock, you can filter events in your search and using only one crontab, in this way your search runs always but finds events only in the defined window.&lt;BR /&gt;
Add to your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NOT (date_wday="sunday" OR (date_wday="monday" date_hour&amp;lt;2) OR (date_wday="saturday" date_hour&amp;gt;6))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 08:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358523#M105988</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-03-18T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358524#M105989</link>
      <description>&lt;P&gt;So this is my understanding from the above query..correct me if i am wrong.. &lt;BR /&gt;
It would fetch me events from Monday &amp;gt;2 Am through Saturday &amp;lt; 6 AM.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 16:43:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358524#M105989</guid>
      <dc:creator>srisplunk12</dc:creator>
      <dc:date>2017-03-20T16:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358525#M105990</link>
      <description>&lt;P&gt;@cusello ,@woodcock  .. can you please say if my above understanding is correct..&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 16:00:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358525#M105990</guid>
      <dc:creator>srisplunk12</dc:creator>
      <dc:date>2017-03-23T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358526#M105991</link>
      <description>&lt;P&gt;Correct, he switched the &lt;CODE&gt;6&lt;/CODE&gt; and the &lt;CODE&gt;2&lt;/CODE&gt; based on your OP.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 22:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358526#M105991</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-23T22:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358527#M105992</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt; ..so i think this will be my search string to fetch the events  from Monday&amp;gt;6 AM to Saturday &amp;lt;2 AM  &lt;/P&gt;

&lt;P&gt;"NOT (date_wday="sunday" OR (date_wday="monday" date_hour&amp;lt;6) OR (date_wday="saturday" date_hour&amp;gt;2))"&lt;/P&gt;

&lt;P&gt;kindly confirm .&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358527#M105992</guid>
      <dc:creator>srisplunk12</dc:creator>
      <dc:date>2020-09-29T13:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358528#M105993</link>
      <description>&lt;P&gt;Notice the &lt;CODE&gt;NOT&lt;/CODE&gt;.  You should not have switched the comparitors.  It should be this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NOT (date_wday="sunday" OR (date_wday="monday" date_hour&amp;lt;6) OR (date_wday="saturday" date_hour&amp;gt;2))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Mar 2017 15:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358528#M105993</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-24T15:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358529#M105994</link>
      <description>&lt;P&gt;@woodcock...the only change i could see in your reply is to remove the  " " at the start and end..&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 15:58:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358529#M105994</guid>
      <dc:creator>srisplunk12</dc:creator>
      <dc:date>2017-03-24T15:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358530#M105995</link>
      <description>&lt;P&gt;Never mind.  They are the same (you are correct).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:12:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358530#M105995</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-24T18:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358531#M105996</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt; , not to split hairs, but when you replied "not to switch the comparitors" i thought i will need to change the  search string similar to this .. NOT (date_wday="sunday" OR (date_wday="monday" date_hour&amp;gt;6) OR (date_wday="saturday" date_hour&amp;lt;2)).. hence had the question..,,thanks for the help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:23:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358531#M105996</guid>
      <dc:creator>srisplunk12</dc:creator>
      <dc:date>2020-09-29T13:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358532#M105997</link>
      <description>&lt;P&gt;I misread the operators in your descriptive text as operators in your search text and posted a hasty answer.  Then I noticed my mistake and deleted that update and posted the one that is here now.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358532#M105997</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-24T18:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a crontab running from Monday 6 AM through Saturday 2 AM</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358533#M105998</link>
      <description>&lt;P&gt;ok thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 21:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-crontab-running-from-Monday-6-AM-through-Saturday/m-p/358533#M105998</guid>
      <dc:creator>srisplunk12</dc:creator>
      <dc:date>2017-03-24T21:04:11Z</dc:date>
    </item>
  </channel>
</rss>

