Getting Data In

Splunk clean eventdata to an extent

Ant1D
Motivator

Hi,

I am aware that you can permanently erase data from an index by typing the following command via CLI: splunk clean eventdata the_index

This would erase ALL data from the_index.

If I wanted to erase all events from the_index that were indexed on a particular date (e.g. 1st October 2012), how would I do this?

Thanks in advance for your help.

0 Karma
1 Solution

Ayn
Legend

The answer is you can't selectively delete data like that. You can use the delete command, which will "delete" data from a Splunk user perspective, but what it will really do is just mark the data as "deleted" rather than actually erasing it, so you won't free up any disk that way.

View solution in original post

Ayn
Legend

The answer is you can't selectively delete data like that. You can use the delete command, which will "delete" data from a Splunk user perspective, but what it will really do is just mark the data as "deleted" rather than actually erasing it, so you won't free up any disk that way.

Ant1D
Motivator

OK, thanks for your feedback.

0 Karma

Ayn
Legend

No, there is not, apart from the retention settings which will erase data based on its age.

Ant1D
Motivator

Ok I will check it out. Thanks. One last thing, is there any way of selectively erasing data?

0 Karma

Ayn
Legend

Deleted data cannot be undeleted. You can delete data using the delete command, the docs has info on it here: http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Delete

0 Karma

Ant1D
Motivator

Hmmm, that's not great. If I "delete" the data, can this action be reversed? Also, how do I "delete" data? Doing a full clean of an index is not an option. Splunk Devs...if you are watching, the above would be a useful addition 😉

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...