<?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 existing indexed events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267455#M51228</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks for your answer, I actually want to remove the event completely and empty my disk space. If I use delete, the disk space has no change. If I delete junk events I will get 350gb empty space. Pls let me know how to remove events completely and empty disk space.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2015 00:52:33 GMT</pubDate>
    <dc:creator>jkponnuri</dc:creator>
    <dc:date>2015-12-10T00:52:33Z</dc:date>
    <item>
      <title>How to delete existing indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267452#M51225</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I saw multiple junk Windows security events filling up my disk space. I now filtered unnecessary events. How can I delete those existing events? I tried... Delete and it's showing deleted successfully when I do a search with delete command, but I saw the events are not deleted. Could some one help me how to clean up existing indexed events?&lt;/P&gt;

&lt;P&gt;Thanks, &lt;BR /&gt;
Jay&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 00:54:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267452#M51225</guid>
      <dc:creator>jkponnuri</dc:creator>
      <dc:date>2015-12-09T00:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete existing indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267453#M51226</link>
      <description>&lt;P&gt;Hi jkponnuri,&lt;/P&gt;

&lt;P&gt;From the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/SearchReference/Delete"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/SearchReference/Delete&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Using the delete command marks all of the events returned by the search as deleted. Subsequent searches do not return the marked events. No user, not even a user with admin permissions, is able to view this data using Splunk Enterprise. The delete command does not reclaim disk space.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There is a complete topic on this in the documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Indexer/RemovedatafromSplunk"&gt;Remove indexes and indexed data&lt;/A&gt;. It explains the four main options:&lt;/P&gt;

&lt;P&gt;Delete events from subsequent searches.&lt;BR /&gt;
Remove all data from one or more indexes.&lt;BR /&gt;
Remove or disable an entire index.&lt;BR /&gt;
Delete older data, based on a retirement policy.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 01:30:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267453#M51226</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-12-09T01:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete existing indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267454#M51227</link>
      <description>&lt;P&gt;"Delete and it's showing deleted successfully when I do a search with delete command".&lt;/P&gt;

&lt;P&gt;That isn't a search, its a delete command. You are seeing the status of the delete as it happens.&lt;BR /&gt;
Those events have been marked as unsearchable and won't be shown in future searches.&lt;/P&gt;

&lt;P&gt;Subsequent deletions over the same data won't do anything as they are already gone.&lt;/P&gt;

&lt;P&gt;what you should be doing is &lt;/P&gt;

&lt;P&gt;Confirm that those are the events you want deleted. &lt;BR /&gt;
index=blah sourcetype=blah myevent &lt;/P&gt;

&lt;P&gt;Delete the same events.&lt;BR /&gt;
index=blah sourcetype=blah myevent | delete&lt;/P&gt;

&lt;P&gt;You'll see it report back how many events it has "deleted" (actually hidden).&lt;/P&gt;

&lt;P&gt;Check that no events are in that same search.&lt;BR /&gt;
index=blah sourcetype=blah myevent &lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 02:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267454#M51227</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2015-12-09T02:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete existing indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267455#M51228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks for your answer, I actually want to remove the event completely and empty my disk space. If I use delete, the disk space has no change. If I delete junk events I will get 350gb empty space. Pls let me know how to remove events completely and empty disk space.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 00:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267455#M51228</guid>
      <dc:creator>jkponnuri</dc:creator>
      <dc:date>2015-12-10T00:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete existing indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267456#M51229</link>
      <description>&lt;P&gt;Due to internals of how splunk indexers work, selective recovery of disk space is not possible.&lt;BR /&gt;
Reclaiming space can only be done by fully deleting ALL data inside an index.&lt;/P&gt;

&lt;P&gt;WARNING: This is NON-EVENT-SPECIFIC and needs to be done on each search peer/indexer that has your particular index on it.&lt;/P&gt;

&lt;P&gt;To do this jump onto your indexer.&lt;/P&gt;

&lt;P&gt;./splunk clean eventdata -index myindexblah&lt;/P&gt;

&lt;P&gt;This will delete ALL buckets inside that particular index. Make sure this is what you want to do &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 00:59:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267456#M51229</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2015-12-10T00:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete existing indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267457#M51230</link>
      <description>&lt;P&gt;Thanks for quick reply. So it won't be possible to delete and reclaim disk space for specific junk events in index. Thanks a lot for your answer. &lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 01:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267457#M51230</guid>
      <dc:creator>jkponnuri</dc:creator>
      <dc:date>2015-12-10T01:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete existing indexed events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267458#M51231</link>
      <description>&lt;P&gt;The post here explores a way to "to modify indexed data or prune "deleted" data from the index" might be worth a read &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://wiki.splunk.com/Community:Modifying_indexed_data_via_export_and_import"&gt;https://wiki.splunk.com/Community:Modifying_indexed_data_via_export_and_import&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 07:18:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-existing-indexed-events/m-p/267458#M51231</guid>
      <dc:creator>murikadan</dc:creator>
      <dc:date>2015-12-10T07:18:02Z</dc:date>
    </item>
  </channel>
</rss>

