# Error with Enroll Beat for Beats Management

**URL:** <https://discuss.elastic.co/t/error-with-enroll-beat-for-beats-management/187180>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 24, 2019, 5:15pm UTC](https://discuss.elastic.co/t/error-with-enroll-beat-for-beats-management/187180 "2019-06-24T17:15:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rebirther](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rebirther/32/19228_2.png) [@rebirther](https://discuss.elastic.co/u/rebirther)\
**Post date:** [June 24, 2019, 5:15pm UTC](https://discuss.elastic.co/t/error-with-enroll-beat-for-beats-management/187180/1 "2019-06-24T17:15:58Z")

</div>

Error:  
`Error while enrolling: fail to execute the HTTP POST request: Post https://kibana:5601/api/beats/agent/c6ffda0c-c395-421b-ac8b-41eb3e97fb81: dial tcp 127.0.0.1:5601: connect: connection refused`

When I want to do an Enroll for Metricbeat, I get a connection error. Perhaps Metricbeat is trying to connect to port 5601, although link that Kibana gave does not have a port in address:

`sudo metricbeat enroll https://ai.clusterlogics.com ... here comes the hash ...`

I use ubuntu 16.04 and elastics 7.1.1

---

<div class="post-metadata">

**Author:** ![Michael\_Madden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_madden/32/46640_2.png) [@Michael\_Madden](https://discuss.elastic.co/u/Michael_Madden)\
**Post date:** [June 24, 2019, 9:55pm UTC](https://discuss.elastic.co/t/error-with-enroll-beat-for-beats-management/187180/2 "2019-06-24T21:55:56Z")

</div>

Hi Pavel, thanks for reaching out. I'm researching this error & have reached out to other teammates that are working on beats management. I'll let you when I hear more from my teammates or when I make a break through.

Thanks.

---

<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:** [July 22, 2019, 9:56pm UTC](https://discuss.elastic.co/t/error-with-enroll-beat-for-beats-management/187180/3 "2019-07-22T21:56:10Z")

</div>

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