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