couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at https://localhost:9200: Get "https://localhost:9200": x509: certificate signed by unknown authority]
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
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
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
=========================== 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
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
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/).
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 ===================================
If you disable SSL does it work ? that would point to the certificates and where you should investigate.
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
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.