Getting Data In

moving indexes and .dat files

brdr
Contributor

We using Splunk Enterprise, 5.2.2 on Linux. We are moving the indexes to different storage devices depending on the buckets (hot/warm, cold, etc..). We will the volume stanza in the indexes.conf to manage this. Question, what is the .dat files used for found in /opt/splunk/var/lib/splunk for each of the indexes? And, do you I need to move them to the hot/warm db location - how do I manage these going forward after indexes have been appropriately moved?

Thx

0 Karma

baldwintm
Path Finder

This question was answered in https://answers.splunk.com/answers/442499/why-are-we-seeing-dat-files-created-in-the-cold-to.html

"These .dat files hold the next bucket ID to be created for that index, and they aren't influenced by homePath etc. settings in indexes.conf."

0 Karma

lycollicott
Motivator

Are you talking about splunk-autogen-params.dat? It is sort of scratch space where splunkd writes information about how it is managing the buck. (I'm not sure what that information means though.)

You need to move the entire bucket folders, including splunk-autogen-params.dat. Everything in the bucket folder has to move together.

0 Karma

brdr
Contributor

Thank you the response. but my question wasn't around indexes, rather what is the .dat files for and what to do, if anything, once the indexes have been moved appropriately.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Indexes configuration is in indexes.conf, that you can find in your app or in $SPLUNK_HOME/etc/system/local.

You can know where is your indexes.conf using web interface [Settings -- Indexes] at the App column:
- if there is system, you can find in $SPLUNK_HOME/etc/system/local;
- if there's an app, you can find in $SPLUNK_HOME/etc/apps/yourapp/local,
- sometimes it's in launcher app.

To move an index you have to do:
- stop Splunk,
- move the full directory of your index to the new path,
- modify indexes.conf with the new path,
- restart Splunk.

in indexes.conf you probably have $SPLUNK_DB/yourindex, you have to modify $SPLUNK_DB in the new path of your index.

Bye.
Giuseppe

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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...