APM Server command referenceedit

APM Server provides a command-line interface for starting APM Server and performing common tasks, like testing configuration files.

The command-line also supports global flags for controlling global behaviors.

Use sudo to run the following commands if:

  • the config file is owned by root, or
  • APM Server is configured to capture data that requires root access

Some of the features described here require an Elastic license. For more information, see https://www.elastic.co/subscriptions and License Management.

Commands

apikey

Manage API Keys for communication between APM agents and server..

export

Exports the configuration, index template, or ILM policy to stdout.

help

Shows help for any command.

keystore

Manages the secrets keystore.

run

Runs APM Server. This command is used by default if you start APM Server without specifying a command.

setup

Sets up the initial environment, including the ES index template, and ILM policy and write alias.

test

Tests the configuration.

version

Shows information about the current version.

Also see Global flags.