This is a cache of https://www.elastic.co/guide/en/fleet/8.19/env-provider.html. It is a snapshot of the page as it appeared on 2025-12-08T02:23:42.204+0000.
Env Provider | Fleet and Elastic Agent <strong>guide</strong> [8.19] | Elastic
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Env Provider

edit

Provides access to the environment variables as key-value pairs.

For example, set the variable foo:

foo=bar elastic-agent run

The environment variable can be referenced as ${env.foo}.