Deployment Architecture

What is the index settings path and can I modify it?

summitsplunk
Communicator

Hello,

I spun up an Ubuntu Linux box on Amazon EC2. My primary hard drive is 30gb and I also attached a 4tb ebs drive attached to the instance.

My Index Settings Path is currently set to: /opt/splunk/var/lib/splunk (which I believe is the default).

My question is can I tell Splunk to send all of the data to the 4tb drive even if Splunk itself is installed on the root drive?

I'm very new to Splunk and Linux, so sorry if this is a dumb question.

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi summitsplunk,
if you want to modify the path of all indexes, you have to change a global parameter called SPLUNK_DB that you can find in /opt/splunk/etc/splunk-launch.conf.
You can modify it only by CLI and restarting Splunk.

If instead you want to modify one or more indexes you have to use the following procedure:

  • stop Splunk on Indexer,
  • modify indexes.conf of the index App, inserting the new path,
  • copy the existing index folder in the new location,
  • restart splunk.

This is for stand alone indexers, if you have a cluster it more complicate and I suggest to follow the procedure described in
http://docs.splunk.com/Documentation/Splunk/7.0.0/Indexer/Clusterdeploymentoverview

Bye.
Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi summitsplunk,
if you want to modify the path of all indexes, you have to change a global parameter called SPLUNK_DB that you can find in /opt/splunk/etc/splunk-launch.conf.
You can modify it only by CLI and restarting Splunk.

If instead you want to modify one or more indexes you have to use the following procedure:

  • stop Splunk on Indexer,
  • modify indexes.conf of the index App, inserting the new path,
  • copy the existing index folder in the new location,
  • restart splunk.

This is for stand alone indexers, if you have a cluster it more complicate and I suggest to follow the procedure described in
http://docs.splunk.com/Documentation/Splunk/7.0.0/Indexer/Clusterdeploymentoverview

Bye.
Giuseppe

Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...