<?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: refresh cron schedule of a savesearch from cli/api in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-refresh-cron-schedule-of-a-savesearch-from-cli-api/m-p/640814#M16145</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/194518"&gt;@schose&lt;/a&gt;&amp;nbsp;- Few options, not sure which one you will be able to do.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Change from UI (SavedSearches, Reports, and Alerts page of Splunk)&lt;UL&gt;&lt;LI&gt;Will put the configuration in a local folder&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Install the App through CLI&lt;UL&gt;&lt;LI&gt;This you can even do through your automation.&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VatsalJagani_0-1681988597442.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25008i638D4488D05DE2DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VatsalJagani_0-1681988597442.png" alt="VatsalJagani_0-1681988597442.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Install App through Splunk REST API&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Using-the-REST-API-to-install-an-app-from-a-file/td-p/149034?_ga=2.233768542.1328666194.1681972000-122114888.1681972000&amp;amp;_gl=1*12yprzd*_ga*MTIyMTE0ODg4LjE2ODE5NzIwMDA.*_ga_5EPM2P39FV*MTY4MTk4ODU2Mi4yLjEuMTY4MTk4ODU4MC40Mi4wLjA" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Using-the-REST-API-to-install-an-app-from-a-file/td-p/149034?_ga=2.233768542.1328666194.1681972000-122114888.1681972000&amp;amp;_gl=1*12yprzd*_ga*MTIyMTE0ODg4LjE2ODE5NzIwMDA.*_ga_5EPM2P39FV*MTY4MTk4ODU2Mi4yLjEuMTY4MTk4ODU4MC40Mi4wLjA&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!! Kindly upvote if it does!!!&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 11:04:58 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2023-04-20T11:04:58Z</dc:date>
    <item>
      <title>How to refresh cron schedule of a savesearch from cli/api?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-refresh-cron-schedule-of-a-savesearch-from-cli-api/m-p/640681#M16132</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have an testapp with a savesearch containing:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;[testsearch]
alert.suppress = 0
alert.track = 0
counttype = number of events
cron_schedule = 1 * * * 1
dispatch.earliest_time = -7d@d
dispatch.latest_time = -0d@d
display.general.type = statistics
display.page.search.mode = verbose
display.page.search.tab = statistics
enableSched = 1
quantity = 0
relation = greater than
search = | makeresults&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;when i install the app using gui/api or commandline i see the schedule for next monday 1am. When i now change the schedule and settings to:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;[testsearch]
alert.suppress = 0
alert.track = 0
counttype = number of events
cron_schedule = 5 * * * *
dispatch.earliest_time = -16m@m
dispatch.latest_time = -1m@m
display.general.type = statistics
display.page.search.mode = verbose
display.page.search.tab = statistics
enableSched = 1
quantity = 0
relation = greater than
search = | makeresults&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;and checking by&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt; | rest /servicesNS/-/testsearch/saved/searches | table title cron_schedule eai:acl.app cron_schedule next_scheduled_time | rename eai:acl.app as app | search title=*testsearch&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;i see that next_scheduled_time is still next monday. running a /debug/refresh or curl -k -u admin:XXX &lt;A href="https://localhost:8089/servicesNS/nobody/testsearch/admin/localapps/_reload" target="_blank" rel="noopener"&gt;https://localhost:8089/servicesNS/nobody/testsearch/admin/localapps/_reload &lt;/A&gt;does not fix the issue. It seems only restarting the searchhead, wait until next schedule (multiple day in this case) or change using the gui fixes the issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;In our case non of the above is possible, as we are deploying our apps using a cicd pipeline.&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Any hint or workaround?&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Andreas&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Apr 2023 17:22:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-refresh-cron-schedule-of-a-savesearch-from-cli-api/m-p/640681#M16132</guid>
      <dc:creator>schose</dc:creator>
      <dc:date>2023-04-21T17:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: refresh cron schedule of a savesearch from cli/api</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-refresh-cron-schedule-of-a-savesearch-from-cli-api/m-p/640814#M16145</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/194518"&gt;@schose&lt;/a&gt;&amp;nbsp;- Few options, not sure which one you will be able to do.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Change from UI (SavedSearches, Reports, and Alerts page of Splunk)&lt;UL&gt;&lt;LI&gt;Will put the configuration in a local folder&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Install the App through CLI&lt;UL&gt;&lt;LI&gt;This you can even do through your automation.&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VatsalJagani_0-1681988597442.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25008i638D4488D05DE2DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VatsalJagani_0-1681988597442.png" alt="VatsalJagani_0-1681988597442.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Install App through Splunk REST API&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Using-the-REST-API-to-install-an-app-from-a-file/td-p/149034?_ga=2.233768542.1328666194.1681972000-122114888.1681972000&amp;amp;_gl=1*12yprzd*_ga*MTIyMTE0ODg4LjE2ODE5NzIwMDA.*_ga_5EPM2P39FV*MTY4MTk4ODU2Mi4yLjEuMTY4MTk4ODU4MC40Mi4wLjA" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Using-the-REST-API-to-install-an-app-from-a-file/td-p/149034?_ga=2.233768542.1328666194.1681972000-122114888.1681972000&amp;amp;_gl=1*12yprzd*_ga*MTIyMTE0ODg4LjE2ODE5NzIwMDA.*_ga_5EPM2P39FV*MTY4MTk4ODU2Mi4yLjEuMTY4MTk4ODU4MC40Mi4wLjA&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!! Kindly upvote if it does!!!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 11:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-refresh-cron-schedule-of-a-savesearch-from-cli-api/m-p/640814#M16145</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-04-20T11:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: refresh cron schedule of a savesearch from cli/api</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-refresh-cron-schedule-of-a-savesearch-from-cli-api/m-p/641110#M16167</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;updating the app using REST API or GUI doesn't make a difference. We will open a call for this behaviour.&lt;/P&gt;&lt;P&gt;as a workaround it's possible to "version" your savedsearches -&amp;gt; putting 0001,2,3 at the end. Not very user friendly, but working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 11:13:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-refresh-cron-schedule-of-a-savesearch-from-cli-api/m-p/641110#M16167</guid>
      <dc:creator>schose</dc:creator>
      <dc:date>2023-04-24T11:13:01Z</dc:date>
    </item>
  </channel>
</rss>

