Configuration fileedit

To configure APM Server, you can also update the apm-server.yml configuration file.

For rpm and deb, you’ll find the configuration file at /etc/apm-server/apm-server.yml. For mac and win, look in the archive that you extracted.

See Config File Format in Beats Platform Reference for more about the structure of the config file.

apm-server:
  host: localhost:8200

output:
  elasticsearch:
    hosts: ElasticsearchAddress:9200

The output section, like in other Beats, contains settings describing how and where to store the data.

Note

If you are using an X-Pack secured version of Elastic Stack, you need to specify credentials in the config file before you run the commands that set up and start APM Server. For example:

output.elasticsearch:
  hosts: ["ElasticsearchAddress:9200"]
  username: "elastic"
  password: "elastic"

See Configuring APM Server for more configuration options.