<?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: Remove excess buckets via REST API in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Remove-excess-buckets-via-REST-API/m-p/449633#M15797</link>
    <description>&lt;P&gt;Hi @danman06,&lt;/P&gt;

&lt;P&gt;Yes, that is correct. REST API endpoint for removing excess buckets. Based on the &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/RESTREF/RESTcluster#cluster.2Fmaster.2Fcontrol.2Fcontrol.2Fprune_index"&gt;documentation&lt;/A&gt;, if you want to remove excess buckets from certain indexes, you need to supply index name in that REST API. If you do not provide any index name, Splunk will remove excess buckets from all indexes.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index   Optional. The index from which to remove excess bucket copies. If not specified, the POST operation clears excess bucket copies across all indexes.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With Index name&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass &lt;A href="https://localhost:8089/services/cluster/master/control/control/prune_index" target="test_blank"&gt;https://localhost:8089/services/cluster/master/control/control/prune_index&lt;/A&gt; -d index="my_index"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Without index (Which means it will remove excess bucket from all indexes)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass &lt;A href="https://localhost:8089/services/cluster/master/control/control/prune_index" target="test_blank"&gt;https://localhost:8089/services/cluster/master/control/control/prune_index&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 Sep 2018 19:32:45 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2018-09-05T19:32:45Z</dc:date>
    <item>
      <title>Remove excess buckets via REST API</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Remove-excess-buckets-via-REST-API/m-p/449632#M15796</link>
      <description>&lt;P&gt;We have some problems with excess buckets from time to time, and I am writing a python program to check for excess buckets. Then, I want to take that list and purge them. In the documentation, I see the endpoint &lt;STRONG&gt;/cluster/master/control/control/prune_index&lt;/STRONG&gt;. My question is, is this the correct API end point to call? Do I need to pass it a list of buckets? Or am I off track? &lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 18:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Remove-excess-buckets-via-REST-API/m-p/449632#M15796</guid>
      <dc:creator>danman06</dc:creator>
      <dc:date>2018-09-05T18:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Remove excess buckets via REST API</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Remove-excess-buckets-via-REST-API/m-p/449633#M15797</link>
      <description>&lt;P&gt;Hi @danman06,&lt;/P&gt;

&lt;P&gt;Yes, that is correct. REST API endpoint for removing excess buckets. Based on the &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/RESTREF/RESTcluster#cluster.2Fmaster.2Fcontrol.2Fcontrol.2Fprune_index"&gt;documentation&lt;/A&gt;, if you want to remove excess buckets from certain indexes, you need to supply index name in that REST API. If you do not provide any index name, Splunk will remove excess buckets from all indexes.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index   Optional. The index from which to remove excess bucket copies. If not specified, the POST operation clears excess bucket copies across all indexes.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With Index name&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass &lt;A href="https://localhost:8089/services/cluster/master/control/control/prune_index" target="test_blank"&gt;https://localhost:8089/services/cluster/master/control/control/prune_index&lt;/A&gt; -d index="my_index"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Without index (Which means it will remove excess bucket from all indexes)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass &lt;A href="https://localhost:8089/services/cluster/master/control/control/prune_index" target="test_blank"&gt;https://localhost:8089/services/cluster/master/control/control/prune_index&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Sep 2018 19:32:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Remove-excess-buckets-via-REST-API/m-p/449633#M15797</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-09-05T19:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove excess buckets via REST API</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Remove-excess-buckets-via-REST-API/m-p/449634#M15798</link>
      <description>&lt;P&gt;Excellent, I'll do some testing and thanks for the prompt reply.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 19:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Remove-excess-buckets-via-REST-API/m-p/449634#M15798</guid>
      <dc:creator>danman06</dc:creator>
      <dc:date>2018-09-05T19:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove excess buckets via REST API</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Remove-excess-buckets-via-REST-API/m-p/449635#M15799</link>
      <description>&lt;P&gt;how to avoid using user:pass if possible ?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 17:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Remove-excess-buckets-via-REST-API/m-p/449635#M15799</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2020-02-04T17:11:13Z</dc:date>
    </item>
  </channel>
</rss>

