官术网_书友最值得收藏!

Changing logging settings (advanced)

Standard logging settings work very well for general usage.

If you need to debug your ElasticSearch server or change how the logging works (that is, remoting send events), you need to change the logging.yml parameters.

Getting ready

You need an installed working ElasticSearch server.

How to do it...

In the config directory in your ElasticSearch, install the directory. There is a logging.yml file which controls the working settings. The steps required for changing the logging settings are:

  1. To emit every kind of logging ElasticSearch has, you can change the root-level logging from rootLogger: INFO, console, file to rootLogger: DEBUG, console, file
  2. Now if you start ElasticSearch from command-line (with bin/elasticsearch –f), you should see a lot of garbage:
    How to do it...

How it works...

ElasticSearch logging system is based on the log4j library (http://logging.apache.org/log4j/).

Changing the log level can be useful to check for bugs or understanding malfunctions due to bad configuration or strange plugin behaviors. A verbose log can be used from ElasticSearch community to cover the problems.

This is a powerful library to manage logging, covering all the functionalities of it (it's outside the scope of this book). If a user needs advanced usage, there are a lot of books and articles on the Internet for reference.

主站蜘蛛池模板: 临朐县| 阆中市| 垣曲县| 崇左市| 义马市| 海城市| 麻栗坡县| 济阳县| 额敏县| 类乌齐县| 克什克腾旗| 道真| 鹤山市| 泾川县| 浦城县| 陵川县| 德庆县| 班玛县| 长治市| 太仓市| 滁州市| 宜春市| 获嘉县| 镇雄县| 山阳县| 闸北区| 上虞市| 如皋市| 台中县| 青海省| 玛纳斯县| 马边| 扶风县| 阜平县| 丰原市| 灵山县| 黄山市| 卢龙县| 麻栗坡县| 韶山市| 宁波市|