Logging configuration options

edit

logging.log_level

edit

Sets the logging level for the agent.

Valid options: ERROR, WARN, INFO, DEBUG, TRACE

Default Type Dynamic

INFO

Level

true

Java System Properties Property file Environment

elastic.apm.logging.log_level

logging.log_level

ELASTIC_APM_LOGGING_LOG_LEVEL

logging.log_file

edit

Sets the path of the agent logs. The special value _AGENT_HOME_ is a placeholder for the folder the elastic-apm-agent.jar is in. Example: _AGENT_HOME_/logs/elastic-apm.log

When set to the special value System.out, the logs are sent to standard out.

When logging to a file, it’s content is deleted when the application starts.

Default Type Dynamic

System.out

String

false

Java System Properties Property file Environment

elastic.apm.logging.log_file

logging.log_file

ELASTIC_APM_LOGGING_LOG_FILE