Getting Data In

Is there a way to prevent deletion of indexes?

a212830
Champion

Hi,

We had a "mishap", and a number of indexes ended up getting deleted, due to a bad indexes.conf configuration. I'm wondering is there a way to tell splunk not to delete indexes?

0 Karma

sloshburch
Splunk Employee
Splunk Employee

IIRC, indexes aren't deleted by means of the indexes.conf changing. Instead, the indexes only stop being known by the indexer but the data itself is still on the filesystem. Have you verified that the folder structure is in fact deleted from the filesystem as well?

Deleting typically requires some account and capabilities that you can restrict. If someone goes on the filesystem directly and deletes the index's db folders then there's nothing you can do...just like anything else on the filesystem.

Hopefully that helps?

a212830
Champion

OK. That's certainly a help. Let me look further into this...

0 Karma

sloshburch
Splunk Employee
Splunk Employee

Any update? Did this help?

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...