Logging configuration optionsedit

logging.log_leveledit

Sets the logging level for the agent.

Default Type Dynamic

INFO

Level

true

Java System Properties Environment

elastic.apm.logging.log_level

ELASTIC_APM_LOGGING.LOG_LEVEL

logging.log_fileedit

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.

Note

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

Default Type Dynamic

System.out

String

false

Java System Properties Environment

elastic.apm.logging.log_file

ELASTIC_APM_LOGGING.LOG_FILE