Changing logging settings
Standard logging settings work very well for general usage.
Changing the log level can be useful when checking for bugs, or to understand malfunctions due to a bad configuration or strange plugin behavior. A verbose log can be used from the ElasticSearch community to cover problems.
If you need to debug your ElasticSearch server or change how the logging works (such as remotely sending events), you need to change the logging.yml
parameters.
Getting ready
You need a working ElasticSearch Server installed.
How to do it...
In the config
directory of your ElasticSearch installation directory, there is a logging.yml
file that controls the work settings.
You need to perform the following steps to change the logging settings:
Omit every kind of logging that ElasticSearch has. Take for example the root level logging here:
rootLogger: INFO, console, file
Now, change the root level logging using this:
rootLogger: DEBUG, console, file
Now, if you start ElasticSearch from the command line...