- ElasticSearch Cookbook
- Alberto Paro
- 211字
- 2021-04-02 10:09:59
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:
- To emit every kind of logging ElasticSearch has, you can change the root-level logging from
rootLogger: INFO, console, file
torootLogger: DEBUG, console, file
- Now if you start ElasticSearch from command-line (with
bin/elasticsearch –f
), you should see a lot of garbage:
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.
- Citrix XenApp Performance Essentials
- 嵌入式Linux驅動程序和系統開發實例精講
- RESS Essentials
- 注冊表應用完全DIY
- iOS 8開發指南
- Linux設備驅動開發
- 計算機應用基礎(Windows 7+Office 2016)
- Windows 8實戰從入門到精通(超值版)
- Linux網絡操作系統項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- VMware vSphere 5.1 Cookbook
- Learn Quantum Computing with Python and IBM Quantum Experience
- 每天5分鐘玩轉Docker容器技術
- Unity AR/VR開發:實戰高手訓練營
- Mastering AWS CloudFormation
- SAP后勤模塊實施攻略:SAP在生產、采購、銷售、物流中的應用