Adjusting Logging Levels in Elasticsearch
Summary: This article outlines how to adjust logging levels in Elasticsearch
Elasticsearch logging levels can be adjusted by changing the corresponding logger.{name}.level to the desired level. Each logger accepts Log4j 2’s built-in log levels, from least to most verbose: OFF
, FATAL
, ERROR
, WARN
, INFO
, DEBUG
, and TRACE
.
- Navigate to the server which host the elasticsearch service
- Open services.msc and stop the elasticsearch service
- Navigate to the elasticsearch config folder (generally located at C:\Program Files\SailPoint\elasticsearch-5.1.1\config)
- Open the Log4j properties file
- Recommend opening in Notepad++ for easier viewing
- Locate the logger level you would like to adjust and enter the new desired logging level
- Save the file
- Start the elasticsearch service
The following levels correspond to the following log files
- logger.action.level -> elasticsearch-service-x64-stdout, FileAccessManager
- logger.deprecation.level -> FileAccessManager_deprecation