<?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 Why is my curl command unable to schedule an alert to a future time? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210803#M3730</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Ideally, below mentioned command should work, but Curl command is unable to schedule alert to future time&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u username:password &lt;A href="http://.../services/saved/searches/${ALERT_NAME}/reschedule" target="test_blank"&gt;http://.../services/saved/searches/${ALERT_NAME}/reschedule&lt;/A&gt; -d schedule_time=2016-08-15T14:11:01Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It starts the alert/search at the time of executing the command, instead of required future time.&lt;/P&gt;

&lt;P&gt;Kindly advise.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2015 19:07:07 GMT</pubDate>
    <dc:creator>kamal_jagga</dc:creator>
    <dc:date>2015-12-29T19:07:07Z</dc:date>
    <item>
      <title>Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210803#M3730</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Ideally, below mentioned command should work, but Curl command is unable to schedule alert to future time&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u username:password &lt;A href="http://.../services/saved/searches/${ALERT_NAME}/reschedule" target="test_blank"&gt;http://.../services/saved/searches/${ALERT_NAME}/reschedule&lt;/A&gt; -d schedule_time=2016-08-15T14:11:01Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It starts the alert/search at the time of executing the command, instead of required future time.&lt;/P&gt;

&lt;P&gt;Kindly advise.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 19:07:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210803#M3730</guid>
      <dc:creator>kamal_jagga</dc:creator>
      <dc:date>2015-12-29T19:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210804#M3731</link>
      <description>&lt;P&gt;You're using GET not POST.  GET is default for curl and therefore your data in -d is being discarded by the API and it's falling back to another snipet of code and running the job immediately instead.  The examples dont show using -XGET -XPOST -XPUT -XDELETE -XUPDATE etc. switches in curl but I"m almost certain this is your issue.&lt;/P&gt;

&lt;P&gt;Try adding -XPOST to your curl command.  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/RESTREF/RESTlist"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/RESTREF/RESTlist&lt;/A&gt; has this:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/919i4E9EEE2B14C0DC91/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 19:43:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210804#M3731</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-12-29T19:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210805#M3732</link>
      <description>&lt;P&gt;Hey Thanks for replying and apologies for the late reply. But it didn't work&lt;/P&gt;

&lt;P&gt;Actually i have tried all options :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u username:password &lt;A href="http://.../services/saved/searches/${ALERT_NAME}/reschedule" target="test_blank"&gt;http://.../services/saved/searches/${ALERT_NAME}/reschedule&lt;/A&gt; -X POST schedule_time=2016-01-20T14:25:01Z
==&amp;gt; Triggers the search immediately.

curl -k -u username:password &lt;A href="http://.../services/saved/searches/${ALERT_NAME}/reschedule" target="test_blank"&gt;http://.../services/saved/searches/${ALERT_NAME}/reschedule&lt;/A&gt; -X POST
==&amp;gt; Triggers the search immediately.

curl -k -u username:password &lt;A href="http://.../services/saved/searches/${ALERT_NAME}/reschedule" target="test_blank"&gt;http://.../services/saved/searches/${ALERT_NAME}/reschedule&lt;/A&gt;  -d -X POST schedule_time=2015-01-20T14:38:01Z
==&amp;gt;
 In handler 'savedsearch': Argument "-X" is not supported by this handler.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Still I am unable to use the curl command to reschedule saved searches to future time.&lt;/P&gt;

&lt;P&gt;Kindly advise.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 22:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210805#M3732</guid>
      <dc:creator>kamal_jagga</dc:creator>
      <dc:date>2016-01-20T22:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210806#M3733</link>
      <description>&lt;P&gt;Your curl command isnt correct in the example you gave.  Now it could have been the forum auto-changing your formatting when you posted your comment.  So I changed it so that everything is in code blocks (indented 5 spaces on every line, "101010" button).&lt;/P&gt;

&lt;P&gt;So here's what I suggest you try the below format.  -d is data you send... -XPOST or -XGET or -XDELETE or -XPUT dont go "inside" of the -d switch.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u username:password -XPOST &lt;A href="http://.../services/saved/searches/${ALERT_NAME}/reschedule" target="test_blank"&gt;http://.../services/saved/searches/${ALERT_NAME}/reschedule&lt;/A&gt;  -d {schedule_time=2015-01-20T14:38:01Z}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jan 2016 12:51:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210806#M3733</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-22T12:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210807#M3734</link>
      <description>&lt;P&gt;Your curl command isnt correct in the example you gave.  Now it could have been the forum auto-changing your formatting when you posted your comment.  So I changed it so that everything is in code blocks (indented 5 spaces on every line, "101010" button).&lt;/P&gt;

&lt;P&gt;I suggest you try the below format.  -d is data you send... -XPOST or -XGET or -XDELETE or -XPUT dont go "inside" of the -d switch. -d must be in xml or json format according to rest documentation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u username:password -XPOST &lt;A href="http://.../services/saved/searches/${ALERT_NAME}/reschedule" target="test_blank"&gt;http://.../services/saved/searches/${ALERT_NAME}/reschedule&lt;/A&gt;  -d {"schedule_time":"2015-01-20T14:38:01Z"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/920i24441068E8BAF179/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 12:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210807#M3734</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-22T12:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210808#M3735</link>
      <description>&lt;P&gt;Hey Michael,&lt;/P&gt;

&lt;P&gt;This is also giving error &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
curl -k -u username:password -XPOST http://.../services/saved/searches/${ALERT_NAME}/reschedule  -d {schedule_time=2016-01-29T14:38:01Z}&lt;BR /&gt;
curl -k -u username:password -XPOST http://.../services/saved/searches/${ALERT_NAME}/reschedule  -d {"schedule_time":"2016-01-29T14:38:01Z"}&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;msg type="ERROR"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In handler 'savedsearch': Argument "{schedule_time:2016-01-29T14:38:01Z}" is not supported by this handler.&lt;/P&gt;

&lt;P&gt;Also, would you be able to suggest anything to get only required logs. When i try to enable logs, it puts all the XML response.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:32:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210808#M3735</guid>
      <dc:creator>kamal_jagga</dc:creator>
      <dc:date>2020-09-29T08:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210809#M3736</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199197"&gt;@jkat54&lt;/a&gt; and &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/189448"&gt;@kamal_jagga&lt;/a&gt;,&lt;BR /&gt;
I'm a tech writer here at Splunk and I am looking into this issue with our engineering team. There may be a problem with the time format for the parameter. Could you try passing in the schedule_time parameter in the following format?&lt;/P&gt;

&lt;P&gt;sss[.fff] where sss is the number of seconds since Epoch (Jan 1, 1970) and, optionally, fff is the fractional seconds.&lt;/P&gt;

&lt;P&gt;If you need to convert a timestamp to the number of seconds since epoch, there are a few tools available. For example:&lt;BR /&gt;
&lt;A href="http://www.epochconverter.com/" target="_blank"&gt;http://www.epochconverter.com/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;We are still looking into this, so this is just a suggestion to try out. Could you let me know if it works, either way?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210809#M3736</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2020-09-29T08:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210810#M3737</link>
      <description>&lt;P&gt;I figured it out:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u username:password -XPOST &lt;A href="https://localhost:8089/servicesNS/nobody/search/saved/searches/Errors%20in%20the%20last%2024%20hours/" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/search/saved/searches/Errors%20in%20the%20last%2024%20hours/&lt;/A&gt; -d 'output_mode=json&amp;amp;cron_schedule=5 * * * *&amp;amp;is_scheduled=true'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Jan 2016 02:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210810#M3737</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-23T02:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210811#M3738</link>
      <description>&lt;P&gt;Well... it works with cron_schedule but not next_scheduled_time.  I found this link which says next_scheduled_time is read only (&lt;A href="http://dev.splunk.com/view/javascript-sdk/SP-CAAAEKZ" target="_blank"&gt;http://dev.splunk.com/view/javascript-sdk/SP-CAAAEKZ&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:32:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210811#M3738</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-09-29T08:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210812#M3739</link>
      <description>&lt;P&gt;It also says next_scheduled_time is read only in the earlier link i posted.  &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/RESTREF/RESTsearch#saved.2Fsearches" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/RESTREF/RESTsearch#saved.2Fsearches&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I got this post to work but it doesnt update the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; curl -k -XPOST -u username:password https://localhost:8089/servicesNS/nobody/search/saved/searches/Errors%20in%20the%20last%20hour/reschedule -d 'output_mode=json&amp;amp;schedule_time=2017-01-22T21:55:00-05:00'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210812#M3739</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-09-29T08:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210813#M3740</link>
      <description>&lt;P&gt;If anyone is curious as to how to figure this out... i was able to use fiddler2 to see the post my browser was making.  So fired up fiddler, went to saved searches, made an edit to the schedule, read the raw packets, decoded the post.  And i dont know where i got output_mode=json from but i dont believe it is required.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 02:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210813#M3740</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-23T02:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210814#M3741</link>
      <description>&lt;P&gt;This epoch time is some day in 2022:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/86185-1.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I get a good response, but the next_scheduled_date doesnt update:&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/86186-2.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;next_scheduled_time 2016-01-23 01:49:19 Eastern Standard Time&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210814#M3741</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-09-29T08:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210815#M3742</link>
      <description>&lt;P&gt;I tried with %3N (ms) too&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 06:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210815#M3742</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-23T06:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210816#M3743</link>
      <description>&lt;P&gt;The following options are also not giving the expected output.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;This is creating a new cloned alert and scheduling the search at the mentioned cron time. &lt;/P&gt;

&lt;P&gt;cron_schedule=0 21 * * * to schedule it at 9pm everyday(formatting issue in the below command)&lt;/P&gt;

&lt;P&gt;curl -k -u username:password -XPOST &lt;A href="https://localhost:8089/servicesNS/nobody/search/saved/searches/Errors%20in%20the%20last%2024%20hours/" target="_blank"&gt;https://localhost:8089/servicesNS/nobody/search/saved/searches/Errors%20in%20the%20last%2024%20hours/&lt;/A&gt; -d 'output_mode=json&amp;amp;cron_schedule=0 21 * * * &amp;amp;is_scheduled=true'&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt; This is triggering at the alert immediately.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;curl -k -u username:password -XPOST &lt;A href="https://localhost:9086/services/saved/searches/testkamal2/reschedule" target="_blank"&gt;https://localhost:9086/services/saved/searches/testkamal2/reschedule&lt;/A&gt; schedule_time=1455842777&lt;BR /&gt;
Not sure, if I am missing out anything. Kindly advise.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:34:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210816#M3743</guid>
      <dc:creator>kamal_jagga</dc:creator>
      <dc:date>2020-09-29T08:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210817#M3744</link>
      <description>&lt;P&gt;Also, would you be able to suggest anything to get only required logs. When i try to enable logs, it puts all the XML response.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 18:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210817#M3744</guid>
      <dc:creator>kamal_jagga</dc:creator>
      <dc:date>2016-01-25T18:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210818#M3745</link>
      <description>&lt;P&gt;Here are some additional tips from our engineering team.&lt;/P&gt;

&lt;P&gt;-cron_schedule must be a five-field value. Can you try passing it in as one?&lt;BR /&gt;
-Because of the way curl works, it might be best to not include % escaping inside the curl request. Pass no escaped characters.&lt;BR /&gt;
-It's probably also better to do multiple --data options rather than manually using a &amp;amp; character since curl MAY escape that as well&lt;/P&gt;

&lt;P&gt;I hope these help! &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 18:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210818#M3745</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-01-26T18:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210819#M3746</link>
      <description>&lt;P&gt;@frobinson:&lt;/P&gt;

&lt;P&gt;My Issue : Sometimes data files come later than their scheduled time. So my alerts don't produce any results, so i have to re-run them again later. In such cases I am trying to automatically reschedule the alert  2 or 3 hrs later than the original time.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 17:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210819#M3746</guid>
      <dc:creator>kamal_jagga</dc:creator>
      <dc:date>2016-01-27T17:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210820#M3747</link>
      <description>&lt;P&gt;I am still unable to figure out the exact format of using the curl command to reschedule the alert to a future time. Also, I am unable to find a way to log only the required stuff.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 18:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210820#M3747</guid>
      <dc:creator>kamal_jagga</dc:creator>
      <dc:date>2016-01-27T18:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210821#M3748</link>
      <description>&lt;P&gt;@kamal_jagga,&lt;BR /&gt;
Thank you for the details of your use case. I am sorry for the confusion about using this endpoint. I will look into whether there is a bug with its behavior. &lt;/P&gt;

&lt;P&gt;For now, I would recommend considering some changes to your scheduling for the alert and adjusting its scheduling using the Splunk Web alert configuration UI. Could you adjust the alert timing or frequency in order to capture the results you are looking for? I'm not sure if you have looked into the search time range and the alert cron schedule, additionally. Sometimes when these are out of sync, results can be missed. In our docs:&lt;BR /&gt;
"To avoid overlaps or gaps, the execution schedule should match the search time range. For example, to run a search every 20 minutes the search's time range should also be 20 minutes (-20m). "&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/Alert/Definescheduledalerts"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/Alert/Definescheduledalerts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Another option, to get more specific help with your use case and data, would be to contact support:&lt;BR /&gt;
&lt;A href="http://www.splunk.com/en_us/about-us/contact.html#customer-support"&gt;http://www.splunk.com/en_us/about-us/contact.html#customer-support&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 21:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210821#M3748</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-01-27T21:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my curl command unable to schedule an alert to a future time?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210822#M3749</link>
      <description>&lt;P&gt;After trying everything with reschedule i had to let go of it and as suggested by you Kamal_jagga i used what you have written as final solution to use cron_schedule instead of reschedule&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:55:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-my-curl-command-unable-to-schedule-an-alert-to-a-future/m-p/210822#M3749</guid>
      <dc:creator>behlkush</dc:creator>
      <dc:date>2020-09-30T00:55:15Z</dc:date>
    </item>
  </channel>
</rss>

