Logs
This page describes configuring Lenses Agent logging.
Changes to the logback.xml are hot reloaded by the Agent, no need to restart.
All logs are emitted unbuffered as a stream of events to both stdout and to rotating files inside the directory logs/.
The logback.xml file is used to configure logging.
If customization is required, it is recommended to adapt the default configuration rather than write your own from scratch.
The file can be placed in any of the following directories:
the directory where the Agent is started from
/etc/lenses/
agent installation directory.
The first one found, in the above order, is used, but to override this and use a custom location, set the following environment variable:
Default configuration
The default configuration file is set up to hot-reload any changes every 30 seconds.
Log Level
The default log level is set to INFO
(apart from some very verbose classes).
Log Format
All the log entries are written to the output using the following pattern:
You can adjust this inside logback.xml to match your organization’s defaults.
Log Location
logs/ you will find three files: lenses.log
, lenses-warn.log
and metrics.log
. The first contains all logs and is the same as the stdout. The second contains only messages at level WARN and above. The third one contains timing metrics and can be useful for debugging.
Log Buffering
The default configuration contains two cyclic buffer appenders: "CYCLIC-INFO” and “CYCLIC-METRICS”. These appenders are required to expose the Agent logs within the Admin UI.
Last updated