Elasticsearch can't write to log files

后端 未结 11 1814
既然无缘
既然无缘 2021-02-01 02:00

I would like to activate logs of elasticsearch .

When I run elasticsearch binaries, I realize that I have problems with logging : the configuration cannot be loaded !

11条回答
  •  萌比男神i
    2021-02-01 02:23

    If you installed elasticsearch using a package manager like yum or apt-get you should not start elasticsearch this way. Try to use the service: for instance /etc/init.d/elasticsearch or using the command sudo service elasticsearch start

    You should also check if the logging.yml file is at the location mentioned in the stack trace:/usr/share/elasticsearch/config

    Using sudo to start elasticsearch is not good, you could do sudo elasticsearch to run as the elasticsearch user, but I prefer to use the service call as described in the second sentence.

    Hope that helps

提交回复
热议问题