# Metricbeat doesn't communicate with Elasticsearch

**URL:** <https://discuss.elastic.co/t/metricbeat-doesnt-communicate-with-elasticsearch/256035>\
**Category:** Beats\
**Tags:** elastic-stack-monitoring, elastic-stack-security, metricbeat\
**Created:** [November 19, 2020, 8:42pm UTC](https://discuss.elastic.co/t/metricbeat-doesnt-communicate-with-elasticsearch/256035 "2020-11-19T20:42:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cosmin\_Ciobanu1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cosmin_ciobanu1/32/78785_2.png) [@Cosmin\_Ciobanu1](https://discuss.elastic.co/u/Cosmin_Ciobanu1)\
**Post date:** [November 19, 2020, 8:42pm UTC](https://discuss.elastic.co/t/metricbeat-doesnt-communicate-with-elasticsearch/256035/1 "2020-11-19T20:42:24Z")

</div>

Hi!

I have installed Metricbeat and I have Security feature installed on my ELK!  
After I make all configurations with certificates and modules I get this error:

```
  "service": {
    "type": "elasticsearch",
    "address": "https://localhost:9200"
  },
  "error": {
    "message": "error determining if connected Elasticsearch node is master: error making http request: Get \"https://localhost:9200/_nodes/_local/nodes\": x509: certificate signed by unknown authority"
  }

```

and I don't know what to do with it.

Thank you !

---

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [November 19, 2020, 11:03pm UTC](https://discuss.elastic.co/t/metricbeat-doesnt-communicate-with-elasticsearch/256035/2 "2020-11-19T23:03:13Z")

</div>

Change your hostname from localhost to match the subject in the certificate applied to the server, typically it's the FQDN of the server. You may also need to add ssl configuration options to enable SSL and specify the certificate authority 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:** [December 18, 2020, 1:03am UTC](https://discuss.elastic.co/t/metricbeat-doesnt-communicate-with-elasticsearch/256035/3 "2020-12-18T01:03:17Z")

</div>

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