<?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 do you create and delete the indexers using shell or Python? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-and-delete-the-indexers-using-shell-or-Python/m-p/435339#M75962</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm new to scripting can anyone please help me out to create and delete indexers using shell or Python?&lt;/P&gt;

&lt;P&gt;I've gone through every document in Splunk for deleting/creating, but it's in CLI.&lt;/P&gt;

&lt;P&gt;Much appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 15:41:35 GMT</pubDate>
    <dc:creator>impsk</dc:creator>
    <dc:date>2019-03-08T15:41:35Z</dc:date>
    <item>
      <title>How do you create and delete the indexers using shell or Python?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-and-delete-the-indexers-using-shell-or-Python/m-p/435339#M75962</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm new to scripting can anyone please help me out to create and delete indexers using shell or Python?&lt;/P&gt;

&lt;P&gt;I've gone through every document in Splunk for deleting/creating, but it's in CLI.&lt;/P&gt;

&lt;P&gt;Much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 15:41:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-and-delete-the-indexers-using-shell-or-Python/m-p/435339#M75962</guid>
      <dc:creator>impsk</dc:creator>
      <dc:date>2019-03-08T15:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create and delete the indexers using shell or Python?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-and-delete-the-indexers-using-shell-or-Python/m-p/435340#M75963</link>
      <description>&lt;P&gt;You can totally do this, but there is a huge amount to consider.&lt;/P&gt;

&lt;P&gt;Creating and removing indexers should not be done lightly - depending on your configuration, there is huge potential to loose data irretrievably, and/or render your entire deployment unrecoverable.&lt;/P&gt;

&lt;P&gt;With that said, if you are using S2, this becomes significantly more achievable,  but the scale down process still needs a number of things to run first to roll off hot buckets to S2.&lt;/P&gt;

&lt;P&gt;I suppose at this stage, its worth asking the question: &lt;BR /&gt;
Is this for a test/dev/lab environment (where you don't care about the data) or is this Prod and you need to preserve the data?&lt;/P&gt;

&lt;P&gt;If its the latter, I very strongly suggest you engage with Splunk PS and take their guidance, as there is a lot to think about.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 15:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-and-delete-the-indexers-using-shell-or-Python/m-p/435340#M75963</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-08T15:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create and delete the indexers using shell or Python?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-and-delete-the-indexers-using-shell-or-Python/m-p/435341#M75964</link>
      <description>&lt;P&gt;Its right now for a test purpose .&lt;/P&gt;

&lt;P&gt;for say : deleting the indexer from splunk below three steps should be prcoessed but as said earlier i'm new to scripting it would be grace if you can help me out with this:&lt;/P&gt;

&lt;P&gt;#!/usr/bin/env bash&lt;BR /&gt;
 /opt/splunk/bin ./splunk stop&lt;BR /&gt;
  ./splunk clean eventdata -index indexname&lt;BR /&gt;
  ./splunk start&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 16:13:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-and-delete-the-indexers-using-shell-or-Python/m-p/435341#M75964</guid>
      <dc:creator>impsk</dc:creator>
      <dc:date>2019-03-08T16:13:04Z</dc:date>
    </item>
  </channel>
</rss>

