Installation layoutedit

View the installation layout and default paths for both Fleet-managed APM Server and the APM Server binary.


Elastic Agent files are installed in the following locations. You cannot override these installation paths because they are required for upgrades.

Elastic Agent program files
Main Elastic Agent configuration
Main Elastic Agent Fleet encrypted configuration
Log files for Elastic Agent and Beats shippers [1]
Shell wrapper installed into PATH

You can install Elastic Agent in a custom base path other than /Library. When installing Elastic Agent with the ./elastic-agent install command, use the --base-path CLI option to specify the custom base path.

APM Server binaryedit

APM Server uses the following default paths unless you explicitly change them.

Type Description Location


Home of the APM Server installation.



The location for the binary files.



The location for configuration files.



The location for persistent data files.



The location for the logs created by APM Server.


[1] Logs file names end with a date (YYYYMMDD) and optional number: elastic-agent-YYYYMMDD.ndjson, elastic-agent-YYYYMMDD-1.ndjson, and so on as new files are created during rotation.