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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...