# Haproxy module authentication

**URL:** <https://discuss.elastic.co/t/haproxy-module-authentication/105108>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [October 24, 2017, 5:56pm UTC](https://discuss.elastic.co/t/haproxy-module-authentication/105108 "2017-10-24T17:56:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rozling](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rozling/32/16401_2.png) [@rozling](https://discuss.elastic.co/u/rozling)\
**Post date:** [October 24, 2017, 5:56pm UTC](https://discuss.elastic.co/t/haproxy-module-authentication/105108/1 "2017-10-24T17:56:46Z")

</div>

We have stats enabled on our haproxy loadbalancers, however we also have basic authentication enabled as a security measure.

Is it possible to pass the credentials from the metricbeat haproxy module so it can pick up stats?

I'm trying to generate some decent data so I can demo the Machine Learning features of X-Pack 🙂

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [October 24, 2017, 8:35pm UTC](https://discuss.elastic.co/t/haproxy-module-authentication/105108/2 "2017-10-24T20:35:23Z")

</div>

This is supported already, just undocumented 😕 , check [https://github.com/elastic/beats/issues/4268](https://github.com/elastic/beats/issues/4268) for details

---

<div class="post-metadata">

**Author:** ![rozling](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rozling/32/16401_2.png) [@rozling](https://discuss.elastic.co/u/rozling)\
**Post date:** [October 25, 2017, 9:46am UTC](https://discuss.elastic.co/t/haproxy-module-authentication/105108/3 "2017-10-25T09:46:14Z")

</div>

Ah, awesome - thank you!

---

<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:** [November 22, 2017, 9:46am UTC](https://discuss.elastic.co/t/haproxy-module-authentication/105108/4 "2017-11-22T09:46:17Z")

</div>

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