Getting Data In

Setting the homePath option in indexes.conf on Windows?

maverick
Splunk Employee
Splunk Employee

On Windows, I want to set the homePath in my indexes.conf file for a new index I created, which is located on my E:\ drive.

The online Splunk guides have examples that use

homePath = $SPLUNK_HOME/blah/....

but there are no examples of how an actual path on Windows would be specified.

I have the following setting in my indexes.conf, which does not seem to work.

[myIndex]
homePath = e:\Splunk_Indexes\myIndex\

Assuming my format is incorrect, what is the path supposed to look like so that Splunk used my E:\ drive?

0 Karma

treinke
Builder

This is what I did. I have higher speed drives for the data coming in and then the cold data gets moved to a lower speed / high capacity drive.

Make a copy of c:\program files\splunk\etc\system\default\indexes.conf and place it in c:\program files\splunk\etc\system\local\

Change the $SPLUNK_DB of the index you want to move.

Example:

[myindex]
homePath   = E:\SplunkIndexes-warm\myindex\db
coldPath   = F:\SplunkIndexes-cold\myindex\colddb
thawedPath = F:\SplunkIndexes-thawed\myindex\thaweddb
maxMemMB = 20
maxConcurrentOptimizes = 6
maxHotIdleSecs = 86400
maxHotBuckets = 10
maxDataSize = auto_high_volume

Once you save the file, restart Splunk and it will move the effected indexes to the new folder/drives.

There are no answer without questions
0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...