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!

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 ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...