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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...