<?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 disable scheduled searches via command line interface? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171012#M3717</link>
    <description>&lt;P&gt;You should be able to do that by:&lt;/P&gt;

&lt;P&gt;curl -ku admin:changeme &lt;A href="https://localhost:8089/servicesNS/admin/seach/saved/searches/foobar/enable"&gt;https://localhost:8089/servicesNS/admin/seach/saved/searches/foobar/enable&lt;/A&gt; -d ""&lt;/P&gt;

&lt;P&gt;Learn more about our &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/RESTAPI/RESTintro"&gt;REST API&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2014 23:30:15 GMT</pubDate>
    <dc:creator>Ledion_Bitincka</dc:creator>
    <dc:date>2014-10-22T23:30:15Z</dc:date>
    <item>
      <title>How to disable scheduled searches via command line interface?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171009#M3714</link>
      <description>&lt;P&gt;Hey guys, I'm looking for a way to disable multiple scheduled searches via command line.&lt;/P&gt;

&lt;P&gt;Once a week, we switch one environment on and the other off, so we want to disable searches/alerts for the environment we've disabled.  As you may have guessed, it's quite a few searches/alerts that need to be disabled.  A command-line method would allow me to script it.&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 01:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171009#M3714</guid>
      <dc:creator>pfernandez133</dc:creator>
      <dc:date>2014-10-22T01:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable scheduled searches via command line interface?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171010#M3715</link>
      <description>&lt;P&gt;you can use the REST endpoint directly either through curl or by programming against it using the SDKs to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -ku admin:changeme &lt;A href="https://localhost:8089/servicesNS/&amp;lt;owner-name&amp;gt;/&amp;lt;app-name&amp;gt;/saved/searches/&amp;lt;saved-search-name&amp;gt;" target="test_blank"&gt;https://localhost:8089/servicesNS/&amp;lt;owner-name&amp;gt;/&amp;lt;app-name&amp;gt;/saved/searches/&amp;lt;saved-search-name&amp;gt;&lt;/A&gt;; -d "is_scheduled=0"

 eg 

curl -ku admin:changeme &lt;A href="https://localhost:8089/servicesNS/admin/seach/saved/searches/foobar" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/seach/saved/searches/foobar&lt;/A&gt; -d "is_scheduled=0"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Oct 2014 06:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171010#M3715</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2014-10-22T06:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable scheduled searches via command line interface?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171011#M3716</link>
      <description>&lt;P&gt;Thanks for the suggestion!&lt;/P&gt;

&lt;P&gt;I had to set "is_scheduled=true" to get it to flip from 0 to 1, but the search's status is still set to disabled under Manager &amp;gt; Searches and Reports.  How can I switch that disabled to enabled?&lt;/P&gt;

&lt;P&gt;Thx again!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 20:50:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171011#M3716</guid>
      <dc:creator>pfernandez133</dc:creator>
      <dc:date>2014-10-22T20:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable scheduled searches via command line interface?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171012#M3717</link>
      <description>&lt;P&gt;You should be able to do that by:&lt;/P&gt;

&lt;P&gt;curl -ku admin:changeme &lt;A href="https://localhost:8089/servicesNS/admin/seach/saved/searches/foobar/enable"&gt;https://localhost:8089/servicesNS/admin/seach/saved/searches/foobar/enable&lt;/A&gt; -d ""&lt;/P&gt;

&lt;P&gt;Learn more about our &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/RESTAPI/RESTintro"&gt;REST API&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 23:30:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171012#M3717</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2014-10-22T23:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable scheduled searches via command line interface?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171013#M3718</link>
      <description>&lt;P&gt;To be clear, this disables the scheduling aspect, or alert, of the search, instead of disabling the whole search.  I think it's the best option for your goal though.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2014 04:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171013#M3718</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2014-10-23T04:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable scheduled searches via command line interface?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171014#M3719</link>
      <description>&lt;P&gt;You can also disabled "scheduling capability" in $SPLUNK_HOME/etc/system/{local,default}/default-mode.conf&lt;BR /&gt;
No scheduled  searches willl run ... "ever" on this server.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[pipeline:scheduler]&lt;BR /&gt;
disabled = true&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 23 Oct 2014 08:39:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171014#M3719</guid>
      <dc:creator>lmyrefelt</dc:creator>
      <dc:date>2014-10-23T08:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable scheduled searches via command line interface?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171015#M3720</link>
      <description>&lt;P&gt;Let's get out of the habit of adding a password to our curls, which would then end up in os logs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -ku admin &lt;A href="https://localhost:8089/servicesNS/&amp;lt;owner-name&amp;gt;/&amp;lt;app-name&amp;gt;/saved/searches/&amp;lt;saved-search-name&amp;gt;" target="test_blank"&gt;https://localhost:8089/servicesNS/&amp;lt;owner-name&amp;gt;/&amp;lt;app-name&amp;gt;/saved/searches/&amp;lt;saved-search-name&amp;gt;&lt;/A&gt;; -d "is_scheduled=0"

curl -ku admin &lt;A href="https://localhost:8089/servicesNS/admin/seach/saved/searches/foobar" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/seach/saved/searches/foobar&lt;/A&gt; -d "is_scheduled=0"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above will prompt you for password and not reveal it to the world of shoulder surfers and history buffs.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 13:10:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/171015#M3720</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-07-17T13:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable scheduled searches via command line interface?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/544204#M8886</link>
      <description>&lt;P&gt;Help vote up these new feature ideas ..&amp;nbsp; &amp;nbsp;which is for Splunk to create an app or feature within to product to schedule reoccurring disablement of certain scheduled searches/alerts/reports.&lt;/P&gt;&lt;P&gt;&lt;A href="https://ideas.splunk.com/ideas/EID-I-181" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-181&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ideas.splunk.com/ideas/EID-I-654" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-654&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 14:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-disable-scheduled-searches-via-command-line-interface/m-p/544204#M8886</guid>
      <dc:creator>pretzel2</dc:creator>
      <dc:date>2021-03-17T14:22:30Z</dc:date>
    </item>
  </channel>
</rss>

