<?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: Can we change the cron schedule of a saved search through REST call? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-change-the-cron-schedule-of-a-saved-search-through-REST/m-p/261324#M50148</link>
    <description>&lt;P&gt;Your URI should be something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/servicesNS/admin/search/saved/searches/test_search -d 'cron_schedule=5 *' -d 'sharing=app'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/RESTREF/RESTsearch#POST_saved.2Fsearches_method_detail"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/RESTREF/RESTsearch#POST_saved.2Fsearches_method_detail&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, make sure you use &lt;CODE&gt;curl -v&lt;/CODE&gt; when you're testing - the HTTP response code and the response body should tell you what you're doing wrong (eg if the url is wrong, or a parameter was incorrect). If you post that information into your question here as well it will help people out. &lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2015 15:57:32 GMT</pubDate>
    <dc:creator>jplumsdaine22</dc:creator>
    <dc:date>2015-12-03T15:57:32Z</dc:date>
    <item>
      <title>Can we change the cron schedule of a saved search through REST call?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-change-the-cron-schedule-of-a-saved-search-through-REST/m-p/261323#M50147</link>
      <description>&lt;P&gt;I've tried something like below with no luck.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:thepassword &lt;A href="https://splunk_server:8089/servicesNS/admin/launcher/saved/searches/test_search/acl" target="test_blank"&gt;https://splunk_server:8089/servicesNS/admin/launcher/saved/searches/test_search/acl&lt;/A&gt; -d cron_schedule=/"*5 * * * *" -d sharing=app
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Dec 2015 14:45:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-change-the-cron-schedule-of-a-saved-search-through-REST/m-p/261323#M50147</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2015-12-03T14:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can we change the cron schedule of a saved search through REST call?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-change-the-cron-schedule-of-a-saved-search-through-REST/m-p/261324#M50148</link>
      <description>&lt;P&gt;Your URI should be something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/servicesNS/admin/search/saved/searches/test_search -d 'cron_schedule=5 *' -d 'sharing=app'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/RESTREF/RESTsearch#POST_saved.2Fsearches_method_detail"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/RESTREF/RESTsearch#POST_saved.2Fsearches_method_detail&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, make sure you use &lt;CODE&gt;curl -v&lt;/CODE&gt; when you're testing - the HTTP response code and the response body should tell you what you're doing wrong (eg if the url is wrong, or a parameter was incorrect). If you post that information into your question here as well it will help people out. &lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 15:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-change-the-cron-schedule-of-a-saved-search-through-REST/m-p/261324#M50148</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-03T15:57:32Z</dc:date>
    </item>
  </channel>
</rss>

