Monitoring Splunk

Delete specific data in cluster environment

NOORULAINE
Loves-to-Learn Lots

Hi

 

How to delete only specific data from the specific index(note: not the entire data)in clustered environment

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @NOORULAINE ,

as @PickleRick said, it's possible to delete events (not the entire index) but it's only a logic deletion, not physical only, enabling the can_delete role for the user and it's a very dangerous feature that usually is disabled also for administrators.

The only phisical detetions are the splunk clean eventdata command, but it deletes the entire index and when a bucket rolls from cold at the end of the retention time.

Ciao.

Giuseppe

0 Karma

PickleRick
SplunkTrust
SplunkTrust

With Splunk there is no way to delete data from the index other than the normal rolling oldest buckets to frozen.

There is the "delete" command but it doesn't actually delete the data from the index files (since the index files are immutable after creation and may be - as mentioned above - only rolled as a whole) but it marks that data as not searchable.

That's one of the reasons why you should test your configurations - especially the input-related elements - in a dev/test environment before deploying it to production.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...