# Metricbeat

**URL:** <https://discuss.elastic.co/t/metricbeat/285124>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 25, 2021, 4:48am UTC](https://discuss.elastic.co/t/metricbeat/285124 "2021-09-25T04:48:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![savan820](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@savan820](https://discuss.elastic.co/u/savan820)\
**Post date:** [September 25, 2021, 4:48am UTC](https://discuss.elastic.co/t/metricbeat/285124/1 "2021-09-25T04:48:24Z")

</div>

couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at [https://localhost:9200](https://localhost:9200): Get "[https://localhost:9200](https://localhost:9200)": x509: certificate signed by unknown authority]

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [September 25, 2021, 4:38pm UTC](https://discuss.elastic.co/t/metricbeat/285124/2 "2021-09-25T16:38:22Z")

</div>

U need to set the certificate authority some the TLS certificate being used by Elasticsearch isn't trusted by the metricbeat host by default. See [Secure communication with Elasticsearch | Metricbeat Reference [7.15] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/securing-communication-elasticsearch.html#securing-communication-elasticsearch)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 29, 2021, 1:18am UTC](https://discuss.elastic.co/t/metricbeat/285124/3 "2021-09-29T01:18:33Z")

</div>

Please provide more information in your topics in future.  
Things like the full error you are seeing, the version of things you are running, even your config, these will all help us to help you diagnose your problem 🙂

---

<div class="post-metadata">

**Author:** ![savan820](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@savan820](https://discuss.elastic.co/u/savan820)\
**Post date:** [September 30, 2021, 3:13am UTC](https://discuss.elastic.co/t/metricbeat/285124/4 "2021-09-30T03:13:13Z")

</div>

when we enable the SSL in Elasticsearch that time metric beat can't show the data in dashboard.

.###################### Metricbeat Configuration Example #######################

# This file is an example configuration file highlighting only the most common

# options. The metricbeat.reference.yml file from the same directory contains all the

# supported options with more comments. You can use it as a reference.

# 

# You can find the full configuration reference here:

# [Metricbeat Reference | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/index.html)

# =========================== Modules configuration ============================

metricbeat.config.modules:

# Glob pattern for configuration loading

path: ${path.config}/modules.d/\*.yml

# Set to true to enable config reloading

reload.enabled: false

# Period on which files under path should be checked for changes

#reload.period: 10s

# ======================= Elasticsearch template setting =======================

setup.template.settings:  
index.number\_of\_shards: 1  
index.codec: best\_compression  
#\_source.enabled: false

# ================================== General ===================================

# The name of the shipper that publishes the network data. It can be used to group

# all the transactions sent by a single shipper in the web interface.

#name:

# The tags of the shipper are included in their own field with each

# transaction published.

#tags: ["service-X", "web-tier"]

# Optional fields that you can specify to add additional information to the

# output.

#fields:

# env: staging

# ================================= Dashboards =================================

# These settings control loading the sample dashboards to the Kibana index. Loading

# the dashboards is disabled by default and can be enabled either by setting the

# options here or by using the `setup` command.

setup.dashboards.enabled: true

# The URL from where to download the dashboards archive. By default this URL

# has a value which is computed based on the Beat name and version. For released

# versions, this URL points to the dashboard archive on the [artifacts.elastic.co](http://artifacts.elastic.co)

# website.

#setup.dashboards.url:

# =================================== Kibana ===================================

# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.

# This requires a Kibana endpoint configuration.

setup.kibana:

# Kibana Host

# Scheme and port can be left out and will be set to the default (http and 5601)

# In case you specify and additional path, the scheme is required: [http://localhost:5601/path](http://localhost:5601/path)

# IPv6 addresses should always be defined as: https://[2001:db8::1]:5601

host: "10.0.119.220:5601"  
#ssl.enable: true  
#username: "elastic"  
#password: "torrent12\*"

# Kibana Space ID

# ID of the Kibana Space into which the dashboards should be loaded. By default,

# the Default Space will be used.

#space.id:

# =============================== Elastic Cloud ================================

# These settings simplify using Metricbeat with the Elastic Cloud ([https://cloud.elastic.co/](https://cloud.elastic.co/)).

# The cloud.id setting overwrites the `output.elasticsearch.hosts` and

# `setup.kibana.host` options.

# You can find the `cloud.id` in the Elastic Cloud web UI.

#cloud.id:

# The cloud.auth setting overwrites the `output.elasticsearch.username` and

# `output.elasticsearch.password` settings. The format is `<user>:<pass>`.

#cloud.auth:

# ================================== Outputs ===================================

# Configure what output to use when sending the data collected by the beat.

# ---------------------------- Elasticsearch Output ----------------------------

output.elasticsearch:

# Array of hosts to connect to.

hosts: ["localhost:9200"]

# Protocol - either `http` (default) or `https`.

#protocol: "https"

# Authentication credentials - either API key or username/password.

#api\_key: "id:api\_key"  
username: "elastic"  
password: "abc1234\*"  
#ssl.certificateAuthorities: C:\ELK IN\kibana-7.14.0-windows-x86\_64\config\elasticsearch-ca.pem  
#ssl.certificate: C:\ELK IN\kibana-7.14.0-windows-x86\_64\config\kibana-server.crt  
#ssl.key: C:\ELK IN\kibana-7.14.0-windows-x86\_64\config\kibana-server.key

# ------------------------------ Logstash Output -------------------------------

#output.logstash:

# The Logstash hosts

#hosts: ["localhost:5044"]

# Optional SSL. By default is off.

# List of root certificates for HTTPS server verifications

#ssl.certificate\_authorities: ["/etc/pki/root/ca.pem"]

# Certificate for SSL client authentication

#ssl.certificate: "/etc/pki/client/cert.pem"

# Client Certificate Key

#ssl.key: "/etc/pki/client/cert.key"

# ================================= Processors =================================

# Configure processors to enhance or manipulate events generated by the beat.

processors:

- add\_host\_metadata: ~
- add\_cloud\_metadata: ~
- add\_docker\_metadata: ~
- add\_kubernetes\_metadata: ~

# ================================== Logging ===================================

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [September 30, 2021, 4:39am UTC](https://discuss.elastic.co/t/metricbeat/285124/5 "2021-09-30T04:39:01Z")

</div>

> [@savan820](#):
>
> #ssl.certificateAuthorities: C:\ELK IN\kibana-7.14.0-windows-x86\_64\config\Elasticsearch-ca.pem  
> #ssl.certificate: C:\ELK IN\kibana-7.14.0-windows-x86\_64\config\kibana-server.crt  
> #ssl.key: C:\ELK IN\kibana-7.14.0-windows-x86\_64\config\kibana-server.key

If you disable SSL does it work ? that would point to the certificates and where you should investigate.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 30, 2021, 5:31am UTC](https://discuss.elastic.co/t/metricbeat/285124/6 "2021-09-30T05:31:24Z")

</div>

Please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help 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:** [October 28, 2021, 7:31am UTC](https://discuss.elastic.co/t/metricbeat/285124/7 "2021-10-28T07:31:54Z")

</div>

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