I just installed the Elasticsearch on windows 2012 server and want to change the directory paths for path.data and path.logs per best practices. App info:
--Current location
E:\apps\elasticsearch-5.3.0
E:\apps\elasticsearch-5.3.0\data
E:\apps\elasticsearch-5.3.0\logs
I stopped the apps (Elasticsearch, Kibana and Logstash) and updated the elasticsearch.yml file to this:
#path.data: E:\data\elasticsearch
#path.logs: E:\logs\elasticsearch
When I restart the services it still shows paths:
"data": [
{
"path": """E:\apps\elasticsearch-5.3.0\data\nodes\0""",
"mount": "Local Disk (E:)",
"type": "NTFS",
"total_in_bytes": 107371032576,
"free_in_bytes": 105539002368,
"available_in_bytes": 105539002368
}
"path": {
"logs": """E:\apps\elasticsearch-5.3.0\logs""",
"home": """E:\apps\elasticsearch-5.3.0"""
},
Do I need to update somewhere else also?
Also noticed in file elasticsearch-service.bat that these paths are set:
if "%LOG_DIR%" == "" set LOG_DIR=%ES_HOME%\logs
if "%DATA_DIR%" == "" set DATA_DIR=%ES_HOME%\data
Do I need to update these?