- Fleet and Elastic Agent Guide: other versions:
- Fleet and Elastic Agent overview
- Beats and Elastic Agent capabilities
- Quick starts
- Migrate from Beats to Elastic Agent
- Set up Fleet Server
- Install Elastic Agents
- Secure connections
- Manage Elastic Agents in Fleet
- Manage integrations
- Add an Elastic Agent integration to a policy
- View Elastic Agent integration policies
- Edit or delete an Elastic Agent integration policy
- Install and uninstall Elastic Agent integration assets
- View Elastic Agent integration assets
- Upgrade an Elastic Agent integration
- Uninstall an Elastic Agent integration
- Air-gapped environments
- Configure standalone Elastic Agents
- Command reference
- Troubleshoot
- Release notes
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Local dynamic provider
editLocal dynamic provider
editDefine multiple key-value pairs to generate multiple configurations.
For example, the following Elastic Agent policy defines a local dynamic provider that
defines three values for item
:
inputs: - type: logfile streams: - paths: "/var/${local_dynamic.my_var}/app.log" providers: local_dynamic: items: - vars: my_var: key1 - vars: my_var: key2 - vars: my_var: key3
The configuration generated by this policy looks like:
inputs: - type: logfile streams: - paths: "/var/key1/app.log" - type: logfile streams: - paths: "/var/key2/app.log" - type: logfile streams: - paths: "/var/key3/app.log"
Was this helpful?
Thank you for your feedback.