Specify different path.data for different enviroments

Hello All ,

We are using same Elastic search instance for storing DEV,TEST and PROD data . My path.data and path.logs .

path.data: G:/DEV/Elastic_Search_Data
path.logs: G:/DEV/Elastic_Search_logs

But i am trying to store the data into different paths according to the environment something like below.

if [fields][env] == "DEV" {
path.data: G:/DEV/Elastic_Search_Data
path.logs: G:/DEV/Elastic_Search_logs
}
else if [fields][env] == "TEST" {
path.data: G:/TEST/Elastic_Search_Data
path.logs: G:/TEST/Elastic_Search_logs
}
else if [fields][env] == "PROD" {
path.data: G:/PROD/Elastic_Search_Data
path.logs: G:/PROD/Elastic_Search_logs
}
else
{
path.data: G:/SRVRMGR/Elastic_Search_Data
path.logs: G:/SRVRMGR/Elastic_Search_logs
}

But it is not working. Can you please let me know how we can achieve this ?

Thanks and regards
Saravana S

You should not do that and have separate clusters.

But i am trying to store the data into different paths according to the environment something like below.

You can't do that. You can start multiple instances and each one will use its own dirs but the same instance can't do that.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.