Command line options

edit

This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.

This experimental release allows you to try out new capabilities. There is no migration path for future releases. You must test in a dedicated cluster. Delete the cluster when you are done. You will not be able to upgrade the cluster.

The elastic-agent run command provides flags that alter the behavior of an agent:

-path.home
The home directory of the Elastic Agent. path.home determines the location of the configuration files and data directory.
-c
The configuration file to load. If not specified, Elastic Agent uses {path.home}/elastic-agent.yml.
-path.data

The data directory used by Elastic Agent to store downloaded artifacts. Also stores logs for any Beats started and managed by Elastic Agent.

If not specified, Elastic Agent uses {path.home}/data.