I can't find elastic log


(yuluopiaoyang) #1

I just config path.logs in elasticsearch.yml, the path was generated,but the path is empty, I can't find the log file. Why the log file is empty? Below is my config:

cluster.name: mushroomcluster
node.name: node01
path.logs: /usr/share/elasticsearch/test


(Mark Walkom) #2

Why did you set it to that?
Does the user that runs the Elasticsearch process have write access to it?


(yuluopiaoyang) #3

First I set /usr/share/elasticsearch/logs, I found the path is exist and empty. Then I changed the config to prove the config is effective, and I found the new path "test" is generated. Below is the path right:

drwxrwxr-x 2 elasticsearch root 4096 Jan 29 10:12 test

I think the Elasticsearch process can write to the path.
Thank you for your respond!


(Mark Walkom) #4

Why not just leave it at /var/log/elasticsearch/?


(yuluopiaoyang) #5

OK.I will have a try.


(yuluopiaoyang) #6

I set /var/log/elasticsearch/ and reinstall, but the elasticsearch pod can not work normally. Its status is error. I think elasticsearch process can not write to this path. By the way, I use docker image to install elasticsearch.


(Mark Walkom) #7

Which docker image?


(yuluopiaoyang) #8

elasticsearch.6.1.2.tar

elasticsearch latest 06f0d8328d66 6 weeks ago 538.9 MB


(system) #9

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