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
--namestringrequired- The name of the APM agent key.
--privilegesstring[]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
--privilegesmultiple times to supply more than one value --input-filestring- 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