Installation

Indexing problems

AntoineDRN
Path Finder

Hello Splunkers!

I'm pretty new with Splunk and I retrieve an old splunk project that i didn't set up at all. I'm trying to train myself on it, but... I have some problems i couldn't solve alone.

I have one Search Head, one Indexer and between 3 and 5 forwarders depending on my need. 

Here is the VM of my indexer :

AntoineDRN_0-1651758804401.png

Almost all logs that I collected went in /dev/vda1, which is not suppose to be the case. I've override the default storage location , but i guess it doesn't matter ...

/opt/splunk/etc/system/local/indexes.conf   :

[main]
homePath = /mnt/data/$_index_name/db

I assume it's the reason why i stillm got those messages : 

AntoineDRN_1-1651759224743.png

AntoineDRN_2-1651759251090.pngAntoineDRN_3-1651759267747.png

Please let me know if I did something wrong or if i missed something,

Thanks in advance for your help!

Regards ,

Antoine

 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @AntoineDRN,

you have to set the $SPLUNK_DB variable on Indexers in $SPLUNK_HOME/etc/splunk-launch.conf:

you should find it commented, you have to uncomment it and use the correct folder where indexes are located,

by default it's $SPLUNK_HOME/var/lib/splunk, in your case it should be /dev/vda1.

Then, you have to insert in each path that you find in each indexes,conf

[index_name]
coldPath = $SPLUNK_DB\index_name\colddb
homePath = $SPLUNK_DB\index_name\db
thawedPath = $SPLUNK_DB\index_name\thaweddb

Remember to restart Splunk after conf files upgrade.

In this way the indexes.conf files address the correct folders.

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @AntoineDRN,

you have to set the $SPLUNK_DB variable on Indexers in $SPLUNK_HOME/etc/splunk-launch.conf:

you should find it commented, you have to uncomment it and use the correct folder where indexes are located,

by default it's $SPLUNK_HOME/var/lib/splunk, in your case it should be /dev/vda1.

Then, you have to insert in each path that you find in each indexes,conf

[index_name]
coldPath = $SPLUNK_DB\index_name\colddb
homePath = $SPLUNK_DB\index_name\db
thawedPath = $SPLUNK_DB\index_name\thaweddb

Remember to restart Splunk after conf files upgrade.

In this way the indexes.conf files address the correct folders.

Ciao.

Giuseppe

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...