Elasticsearch can't write to log files

后端 未结 11 1673
既然无缘
既然无缘 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:16

    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.

提交回复
热议问题