<?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 delete data / index (reset start from scratch) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154424#M31389</link>
    <description>&lt;P&gt;If you still see previous data, then something didn't work. I use the clean command every week and it works, I assure you.&lt;/P&gt;

&lt;P&gt;That said - if you reset the index, then IF you have an input defined in inputs.conf, the data will be re-indexed. If you don't want the data re-indexed, then disable the stanza in inputs.conf!&lt;/P&gt;</description>
    <pubDate>Thu, 08 May 2014 03:55:10 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2014-05-08T03:55:10Z</dc:date>
    <item>
      <title>How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154417#M31382</link>
      <description>&lt;P&gt;From UI it seems easy to add data but I don't see an option to delete existing data from index. I need the quick an dirty steps to remove existing data/index so we can experiment different types of logs to import/indexed. Trial/Error pilot...&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 17:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154417#M31382</guid>
      <dc:creator>mldeschenes</dc:creator>
      <dc:date>2014-05-06T17:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154418#M31383</link>
      <description>&lt;P&gt;Great idea!&lt;/P&gt;

&lt;P&gt;There isn't any great way to do this from the UI. However, there is a really simple way to do this from the command line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk stop
splunk clean eventdata -index yourindex
splunk start
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It cleans very fast, since it is just deleting all the files. If you want to clean ALL indexes, just leave off the&lt;BR /&gt;&lt;BR /&gt;
&lt;CODE&gt;-index yourindex&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 17:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154418#M31383</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-06T17:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154419#M31384</link>
      <description>&lt;P&gt;moreover &lt;CODE&gt;|delete&lt;/CODE&gt; to hide the existing events and continue testing your data with different source config.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 17:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154419#M31384</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-05-06T17:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154420#M31385</link>
      <description>&lt;P&gt;Thank you for quick response, however did what you recommended without -index...&lt;BR /&gt;
I still see Events Index data from UI?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;splunk stop&lt;BR /&gt;
splunk clean eventdata&lt;BR /&gt;
This action will permanently erase all events from ALL indexes; it cannot be und&lt;BR /&gt;
one.&lt;BR /&gt;
Are you sure you want to continue [y/n]? y&lt;BR /&gt;
....&lt;BR /&gt;
Disabled database 'splunklogger': will not clean.&lt;BR /&gt;
splunk start&lt;BR /&gt;
All preliminary checks passed.&lt;BR /&gt;
Done&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 17:58:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154420#M31385</guid>
      <dc:creator>mldeschenes</dc:creator>
      <dc:date>2014-05-06T17:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154421#M31386</link>
      <description>&lt;P&gt;If you did this on the indexer, then all the indexes were cleaned. If you have multiple indexers, you will need to do this on each indexer.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;splunklogger&lt;/CODE&gt; is used by Splunk for internal info - it will never "clean" and that's okay.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 23:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154421#M31386</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-06T23:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154422#M31387</link>
      <description>&lt;P&gt;It will be better to clean the _thefishbucket also to reindex the same data again.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2014 02:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154422#M31387</guid>
      <dc:creator>miteshvohra</dc:creator>
      <dc:date>2014-05-07T02:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154423#M31388</link>
      <description>&lt;P&gt;So there is no way to reset the index , I still see previous log/data imported into index.  I only had 1 log imported and basically want to start from scratch for testing purposes (test import options).  I guess I will have to re-install the application every time it seems?&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2014 14:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154423#M31388</guid>
      <dc:creator>mldeschenes</dc:creator>
      <dc:date>2014-05-07T14:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154424#M31389</link>
      <description>&lt;P&gt;If you still see previous data, then something didn't work. I use the clean command every week and it works, I assure you.&lt;/P&gt;

&lt;P&gt;That said - if you reset the index, then IF you have an input defined in inputs.conf, the data will be re-indexed. If you don't want the data re-indexed, then disable the stanza in inputs.conf!&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 03:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154424#M31389</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-08T03:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154425#M31390</link>
      <description>&lt;P&gt;If you clean an index, the fishbucket on the indexer will be appropriately updated so that the data will be reindexed - if that data came from the indexer.&lt;/P&gt;

&lt;P&gt;However, if the data came from a forwarder, then you need to clean the _fishbucket on the forwarder to force the forwarder to resend data that it already sent once. (Because the forwarder doesn't know that you cleaned the indexer...)&lt;/P&gt;

&lt;P&gt;So wherever the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; lives, that's where you need to reset the fishbucket to get the data re-indexed. If you don't want to reset the entire fishbucket, lookup &lt;CODE&gt;btprobe&lt;/CODE&gt; which will let you reindex a single source.&lt;/P&gt;

&lt;P&gt;Good point Mitesh&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 23:39:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154425#M31390</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-09-10T23:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154426#M31391</link>
      <description>&lt;P&gt;If you just want to wipe all data out of the index, perhaps you can use this:&lt;/P&gt;

&lt;P&gt;Edit indexes.conf parameter frozenTimePeriodInSecs to 60 seconds&lt;BR /&gt;
Apply cluster-bundle or restart indexer&lt;/P&gt;

&lt;P&gt;Revert changes to indexes.conf and apply cluster-bundle or restart indexer again.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
Thomas&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 10:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154426#M31391</guid>
      <dc:creator>goelli</dc:creator>
      <dc:date>2015-12-14T10:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154427#M31392</link>
      <description>&lt;P&gt;hi lguinn,&lt;/P&gt;

&lt;P&gt;a quick one,&lt;/P&gt;

&lt;P&gt;Can we clean the index without the flag , is there any option ??&lt;/P&gt;

&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 13:28:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154427#M31392</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2015-12-22T13:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154428#M31393</link>
      <description>&lt;P&gt;Prompt, how to clean an index when indexes in a cluster ?&lt;BR /&gt;
The architecture of the cluster consists of two server indexers - the server indexer-1 and the server indexer-2, are managed all through the server cluster-master.&lt;BR /&gt;
How in this case are the indexes cleaned correctly ?&lt;/P&gt;

&lt;P&gt;In the documentation, I found 2 ways to clean the index:&lt;BR /&gt;
1 Through the GUI &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/&lt;/A&gt;&lt;BR /&gt;
2 And through the clean eventdata command &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/Indexer/RemovedatafromSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.1/Indexer/RemovedatafromSplunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The first option does not delete the physical data from the index, but makes them unavailable for searching&lt;BR /&gt;
The second option cleans the index but completely, but in the documentation it is written that the command (clean eventdata) does NOT WORK FOR INDEXER IN THE CLUSTER&lt;BR /&gt;
How will the PHYSICALLY index in the cluster be cleared ?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 14:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154428#M31393</guid>
      <dc:creator>Aleksey_18</dc:creator>
      <dc:date>2018-06-27T14:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154429#M31394</link>
      <description>&lt;P&gt;What is the steps for indexers in cluster?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 07:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154429#M31394</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2019-02-06T07:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154430#M31395</link>
      <description>&lt;P&gt;And before that stop UFs and other inputs. I prefer even shorter period than 60 seconds. Wait until you see that this index is empty on all indexers, then update retention back.&lt;/P&gt;

&lt;P&gt;Another option is remove index definition from indexes.conf apply cluster-bundle then go to indexers and remove individual index directories an files. Of course you must wait that rolling restart has finished before that. &lt;/P&gt;

&lt;P&gt;Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 06:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/154430#M31395</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-02-28T06:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data / index (reset start from scratch)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/554482#M91892</link>
      <description>&lt;P&gt;This is how I took care of a similar issue:&lt;/P&gt;&lt;P&gt;1. I ran a search on the SH:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; index=my_index sourcetype=my_sourcetype | delete&lt;/P&gt;&lt;P&gt;2. After confirming that the records have been delete, I went to the HF&lt;/P&gt;&lt;P&gt;- stopped Splunk&lt;/P&gt;&lt;P&gt;-&amp;nbsp; /opt/splunk/bin/splunk cmd btprobe -d /opt/splunk/var/lib/splunk/fishbucket/splunk_private_db/ --file /my_file_path/filename.fileextension --reset&lt;/P&gt;&lt;P&gt;- restarted Splunk&lt;/P&gt;&lt;P&gt;and was able to see new data in SH&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 13:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-index-reset-start-from-scratch/m-p/554482#M91892</guid>
      <dc:creator>daymauler</dc:creator>
      <dc:date>2021-06-04T13:35:29Z</dc:date>
    </item>
  </channel>
</rss>

