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 !
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.