Elasticsearch can't write to log files

后端 未结 11 1667
既然无缘
既然无缘 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条回答
  •  心在旅途
    2021-02-01 02:29

    I'm running elasicsearch with the user elasticsearch, so I used this command:

    sudo su elasticsearch -c './bin/elasticsearch -d --default.path.conf=/etc/elasticsearch'
    

    from the dir where elasticsearch is installed. Had to do:

    sudo chown -R elasticsearch:elasticsearch .
    

    in there though because otherwise it won't have write access to the log files. I don't know how this would work via the debian startup scripts, but this seems to work fine like this.

提交回复
热议问题