Getting Data In

Can I safely remove old tsidx files and/or the db_xxxxxxxxxx_xxxxxxxxxx_x directories?

buckml
New Member

I have a machine that is getting low on disk space. Most of the space is being taken by files in the

/opt/splunk/var/lib/splunk/<index>/db 

directory. There are many directories named db_xxxxxxxxxx_xxxxxxxxxx_xx which contain data. Many of these are old with some being over two years old. Can these directories be safely removed? Or, can some of the tsidx files within these directories be safely removed?

0 Karma

s2_splunk
Splunk Employee
Splunk Employee

What are your data retention settings for these indices? tsidx files are aged out along with the data buckets based on your retention settings (time & disk space based).
I would adjust frozenTimePeriodInSecs and maxDataSize to meet your needs and restart your indexer. It will remove anything that no longer meets your new retention settings.
See here for more details.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...