<?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 How to disable a search peer via the CLI or REST API call? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-a-search-peer-via-the-CLI-or-REST-API-call/m-p/275962#M52945</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;Is there a way to disable a search peer via the CLI or an API call?  &lt;/P&gt;

&lt;P&gt;Specifically, I would like to set this param via CLI or REST API, and without having to restart splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# distsearch.conf
disabled_servers = &amp;lt;comma separated list of servers&amp;gt;
* A list of configured but disabled search peers.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 22:26:13 GMT</pubDate>
    <dc:creator>tsunamii</dc:creator>
    <dc:date>2016-04-05T22:26:13Z</dc:date>
    <item>
      <title>How to disable a search peer via the CLI or REST API call?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-a-search-peer-via-the-CLI-or-REST-API-call/m-p/275962#M52945</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;Is there a way to disable a search peer via the CLI or an API call?  &lt;/P&gt;

&lt;P&gt;Specifically, I would like to set this param via CLI or REST API, and without having to restart splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# distsearch.conf
disabled_servers = &amp;lt;comma separated list of servers&amp;gt;
* A list of configured but disabled search peers.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 22:26:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-a-search-peer-via-the-CLI-or-REST-API-call/m-p/275962#M52945</guid>
      <dc:creator>tsunamii</dc:creator>
      <dc:date>2016-04-05T22:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a search peer via the CLI or REST API call?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-a-search-peer-via-the-CLI-or-REST-API-call/m-p/275963#M52946</link>
      <description>&lt;P&gt;I have tested the following commands in my 6.3.3 search head, and appears to be working:&lt;/P&gt;

&lt;P&gt;To enable search peer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -ku admin &lt;A href="https://&amp;lt;host&amp;gt;:&amp;lt;mPort&amp;gt;/servicesNS/-/search/search/distributed/peers/&amp;lt;search_peer_host&amp;gt;%3A&amp;lt;mPort&amp;gt;/enable" target="test_blank"&gt;https://&amp;lt;host&amp;gt;:&amp;lt;mPort&amp;gt;/servicesNS/-/search/search/distributed/peers/&amp;lt;search_peer_host&amp;gt;%3A&amp;lt;mPort&amp;gt;/enable&lt;/A&gt; -X POST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To disable search peer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -ku admin &lt;A href="https://&amp;lt;host&amp;gt;:&amp;lt;mPort&amp;gt;/servicesNS/-/search/search/distributed/peers/&amp;lt;search_peer_host&amp;gt;%3A&amp;lt;mPort&amp;gt;/disable" target="test_blank"&gt;https://&amp;lt;host&amp;gt;:&amp;lt;mPort&amp;gt;/servicesNS/-/search/search/distributed/peers/&amp;lt;search_peer_host&amp;gt;%3A&amp;lt;mPort&amp;gt;/disable&lt;/A&gt; -X POST
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2016 15:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-a-search-peer-via-the-CLI-or-REST-API-call/m-p/275963#M52946</guid>
      <dc:creator>splunkIT</dc:creator>
      <dc:date>2016-04-07T15:52:42Z</dc:date>
    </item>
  </channel>
</rss>

