# Avoid logging password when using hint based autodiscover

**URL:** <https://discuss.elastic.co/t/avoid-logging-password-when-using-hint-based-autodiscover/281797>\
**Category:** Beats\
**Tags:** docker, filebeat, metricbeat\
**Created:** [August 18, 2021, 9:24am UTC](https://discuss.elastic.co/t/avoid-logging-password-when-using-hint-based-autodiscover/281797 "2021-08-18T09:24:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rasmus\_Breinholm\_Rom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rasmus_breinholm_rom/32/79758_2.png) [@Rasmus\_Breinholm\_Rom](https://discuss.elastic.co/u/Rasmus_Breinholm_Rom)\
**Post date:** [August 18, 2021, 9:24am UTC](https://discuss.elastic.co/t/avoid-logging-password-when-using-hint-based-autodiscover/281797/1 "2021-08-18T09:24:49Z")

</div>

Hi

When using Hint based autodiscover, it is possible to configure usernames and password for modules like MySql using labels on a docker container.  
The problem with this is that all labels are logged into elasticsearch, including the password label.  
I tried using ingest pipelines to filter it away, but the MySql module uses its own version specific pipeline, so it will only work if I override the pipeline on every upgrade.

Is it possible to set the password in a way that wont be picked up by the docker module?

Best Regards  
Rasmus

---

<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:** [September 15, 2021, 11:25am UTC](https://discuss.elastic.co/t/avoid-logging-password-when-using-hint-based-autodiscover/281797/2 "2021-09-15T11:25:44Z")

</div>

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