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 !
If you have installed elasticsearch in Debian systems using dpkg, the default configuration can be found at /etc/elasticsearch/
You will have 2 yml files:
elasticsearch.yml
logging.yml
You can edit the elasticsearch file (changing access right or copying file into your main elasticsearch directory). To configure your log path (l.167).
#path.logs: /path/to/logs
#e.g:
path.logs: /usr/share/elasticsearch/logs
Make sure you have right access on it. Then try
cd /usr/share/elasticsearch/
bin/elasticsearch start
and check the publish_adress
given in terminal
You can also define more parameters. Hope this help.