# Does Elastic Agent support Docker label based autodiscovery?

**URL:** https://discuss.elastic.co/t/does-elastic-agent-support-docker-label-based-autodiscovery/342383
**Category:** Elastic Agent
**Tags:** filebeat, metricbeat
**Created:** [September 5, 2023, 11:13pm UTC](https://discuss.elastic.co/t/does-elastic-agent-support-docker-label-based-autodiscovery/342383 "2023-09-05T23:13:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jerrac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerrac/32/52980_2.png) [@jerrac](https://discuss.elastic.co/u/jerrac)
#### Post date: [September 5, 2023, 11:13pm UTC](https://discuss.elastic.co/t/does-elastic-agent-support-docker-label-based-autodiscovery/342383/1 "2023-09-05T23:13:24Z")

</div>

While experimenting with using Metricbeat and Filebeat directly, I found the documentation on hint based auto-discovery that would send the docker logs and metrics through the correct pipelines for different modules. Like getting apache data to come out as apache data instead of generic docker log results.

Today I was back experimenting with Elastic Agent, and I tried using auto-discovery. First I ran into this issue: [Escape ${foo} on strings when configuration is received from Elastic-Agent · Issue #35260 · elastic/beats · GitHub](https://github.com/elastic/beats/issues/35260), but once I did away with the `$`'s in my labels, it still didn't work.

Which led to me posting this to find out if I'm just missing something, or if it really isn't supported.

Am I missing something?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 3, 2023, 11:13pm UTC](https://discuss.elastic.co/t/does-elastic-agent-support-docker-label-based-autodiscovery/342383/2 "2023-10-03T23:13:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
