<?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: python sdk clean index does not seem to work in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191440#M2575</link>
    <description>&lt;P&gt;@sathiyamoorthy, one other option to consider is to delete and re-created indexes using the SDK rather than clean. We do this on our internal tests and it works.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2014 22:21:05 GMT</pubDate>
    <dc:creator>gblock_splunk</dc:creator>
    <dc:date>2014-03-19T22:21:05Z</dc:date>
    <item>
      <title>python sdk clean index does not seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191434#M2569</link>
      <description>&lt;P&gt;Logged in as admin, and executing clean method on an index does not seem to work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tt.indexes['test_index'].clean()
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Logged in to splunk web and able to see data which has been indexed before the clean() is executed.&lt;/P&gt;

&lt;P&gt;Should I do anything else to actually clean the index?&lt;/P&gt;

&lt;P&gt;Using splunk 6 and splunk-sdk 1.0. I couldn't find any relevant change in the splunk-sdk 1.2. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 18:15:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191434#M2569</guid>
      <dc:creator>sathiyamoorthy</dc:creator>
      <dc:date>2014-03-17T18:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: python sdk clean index does not seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191435#M2570</link>
      <description>&lt;P&gt;Hi @sathiyamoorthy&lt;/P&gt;

&lt;P&gt;Sorry you are having issues. Do you get any errors or output?&lt;/P&gt;

&lt;P&gt;What OS platform are you running this on?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 00:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191435#M2570</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2014-03-18T00:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: python sdk clean index does not seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191436#M2571</link>
      <description>&lt;P&gt;There is no error / output. OS is redhat.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 09:35:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191436#M2571</guid>
      <dc:creator>sathiyamoorthy</dc:creator>
      <dc:date>2014-03-18T09:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: python sdk clean index does not seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191437#M2572</link>
      <description>&lt;P&gt;Hi @sathiamoorthy&lt;/P&gt;

&lt;P&gt;We’ve done some investigation into this API and it has inconsistent results. Our recommendation is to not rely on it. We are evaluating whether or not we will keep it in future versions of the SDK.&lt;/P&gt;

&lt;P&gt;Can you elaborate more on exactly what your use case is for this? &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Are you using this during development, or in a production environment?&lt;/LI&gt;
&lt;LI&gt;Is the Splunk instance running locally or on a remote machine.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Glenn&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 18:17:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191437#M2572</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2014-03-18T18:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: python sdk clean index does not seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191438#M2573</link>
      <description>&lt;P&gt;Using this in development, executing the following external command from python script which works for now.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk clean eventdata -index INDEXNAME -f
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Will soon be using "| delete" to delete specific data of that index rather than deleting everything.&lt;/P&gt;

&lt;P&gt;Thanks for the recommendation I will not use the SDK method to clean summary index.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2014 18:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191438#M2573</guid>
      <dc:creator>sathiyamoorthy</dc:creator>
      <dc:date>2014-03-19T18:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: python sdk clean index does not seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191439#M2574</link>
      <description>&lt;P&gt;Hi @sathiyamoorthy&lt;/P&gt;

&lt;P&gt;Thanks for clarifying. If you are using in development, then calling the splunk CLI was going to be my recommendation. The CLI is not using the same path as the API, it actually directly talks to the Splunk instance. &lt;/P&gt;

&lt;P&gt;Sorry for any inconvenience this has caused you.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Glenn&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2014 18:08:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191439#M2574</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2014-03-19T18:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: python sdk clean index does not seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191440#M2575</link>
      <description>&lt;P&gt;@sathiyamoorthy, one other option to consider is to delete and re-created indexes using the SDK rather than clean. We do this on our internal tests and it works.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2014 22:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-clean-index-does-not-seem-to-work/m-p/191440#M2575</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2014-03-19T22:21:05Z</dc:date>
    </item>
  </channel>
</rss>

