Loading

Env Provider

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}.

Note

If you run the agent as a Linux or Windows service, you can also define the environment variables in the service manifest. Refer to the example in Proxy Server connectivity using default host variables.