# MetricBeat error while connecting to Elasticsearch

**URL:** <https://discuss.elastic.co/t/metricbeat-error-while-connecting-to-elasticsearch/252905>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [October 21, 2020, 10:21pm UTC](https://discuss.elastic.co/t/metricbeat-error-while-connecting-to-elasticsearch/252905 "2020-10-21T22:21:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sara3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sara3/32/78658_2.png) [@Sara3](https://discuss.elastic.co/u/Sara3)\
**Post date:** [October 21, 2020, 10:21pm UTC](https://discuss.elastic.co/t/metricbeat-error-while-connecting-to-elasticsearch/252905/1 "2020-10-21T22:21:20Z")

</div>

Hi ,  
I am having trouble with metricbeat communicate to OpendistroElasticsearch .Both are oss version.Please help!  
Error seen is : ERROR [publisher\_pipeline\_output] pipeline/output.go:154 Failed to connect to backoff(elasticsearch([https://44.256.176.39:9200](https://44.256.176.39:9200))): Get "https://44.236.\>  
Oct 21 22:15:19 ip-10-20-9-79 metricbeat[194427]: 2020-10-21T22:15:19.183Z INFO [publisher\_pipeline\_output] pipeline/output.go:145 Attempting to reconnect to backoff(elasticsearch([https://44.256.176.39:9200](https://44.256.176.39:9200))) with 3 reconnect

Note: When I do curl -v https://:9200 i get not response.  
When I do curl -v https://:9200 -u admin:admin -insecure that is the only time I can see the status of the ELK

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [October 22, 2020, 1:44pm UTC](https://discuss.elastic.co/t/metricbeat-error-while-connecting-to-elasticsearch/252905/2 "2020-10-22T13:44:02Z")

</div>

Please share your Metricbeat configuration formatted using `</>`?

---

<div class="post-metadata">

**Author:** ![Adriann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adriann/32/77780_2.png) [@Adriann](https://discuss.elastic.co/u/Adriann)\
**Post date:** [October 22, 2020, 9:29pm UTC](https://discuss.elastic.co/t/metricbeat-error-while-connecting-to-elasticsearch/252905/3 "2020-10-22T21:29:29Z")

</div>

You can try this setting in your elasticsearch.yml  
And check out your credentials in metricbeat.

```
xpack.security.enabled: true
xpack.security.http.ssl.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.http.ssl.key: your.key
xpack.security.http.ssl.certificate: your.crt
xpack.security.http.ssl.certificate_authorities: your.crt
xpack.security.transport.ssl.key: your.key
xpack.security.transport.ssl.certificate: your.crt
xpack.security.transport.ssl.certificate_authorities: your.ca.cert
xpack.security.transport.ssl.verification_mode: certificate
```

---

<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 19, 2020, 11:29pm UTC](https://discuss.elastic.co/t/metricbeat-error-while-connecting-to-elasticsearch/252905/4 "2020-11-19T23:29:47Z")

</div>

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