stack kb apm-agent-keys create-agent-key cli command

Auth required
elastic stack kb apm-agent-keys create-agent-key \
  --name <name> \
  --privileges <privileges> \
  [options]
		

Create an APM agent key

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--name string required
The name of the APM agent key.
--privileges string[] required

The APM agent key privileges. It can take one or more of the following values:

  • event:write, which is required for ingesting APM agent events. * config_agent:read, which is required for APM agents to read agent configuration remotely.

Repeatable: pass --privileges multiple times to supply more than one value

--input-file string
path to a JSON file to use as command input
--dry-run
validate all inputs and exit without performing any action (preview changes without applying them)
--json

output as JSON