Changing directory for path.data and path.logs

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?

Hi,

If you run elasticsearch-service.bat manager in the bin directoryko and click on Java do you have a path set there?

https://www.elastic.co/guide/en/elasticsearch/reference/current/windows.html

Yes it is. I figured it out, the elasticsearch.yml was commented out. I made a backup and was looking at wrong file. Thanks

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