Hi Experts,
I using ELK 7.16.2v. I am doing a cluster stack monitoring using metricbeat.
I have installed metricbeat on kibana server and enable the kibana-xpack module , disbale the system module.
Confgure kibana-xpack module to take datat from kibana and configure metricbeat.yml to send the monitoring data to monitoring cluster.
But my kibana is giving error for certificate.
Below is my metricbeat.yml configuration
#================================ elasticsearch Output ===================================
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["https://****:9200"]
protocol: "https"
username: ${monitoring.username}
password: ${monitoring.password}
ssl.enabled: true
ssl.certificate_authorities: ["/etc/metricbeat/certs/root-ca.pem"]
ssl.verification_mode: none
Below is my kibana-xpack module configuration:
- module: kibana
metricsets:
- stats
xpack.enabled: true
period: 10s
hosts: ["http://****:5601"]
username: "beats_system"
password: "beats_system"
ssl.enabled: true
ssl.certificate_authorities: ["/etc/metricbeat/certs/kibana-dr.crt"]
ssl.certificate: "/etc/metricbeat/certs/kibana-dr.key"
ssl.key: "/etc/metricbeat/certs/kibana-dr.key"
ssl.verification_mode: "none"
server.ssl.key: "/etc/metricbeat/certs/kibana-dr.key"
server.ssl.certificate: "/etc/metricbeat/certs/kibana-dr.crt"
My kibana is ssl enabled, I have 2 certificate for kibana "kibana-dr.key" and "kibana-dr.crt"
Or I am doing some mistake in passing the ssl?
Below metricbeat error
2022-08-31T22:43:45.337+0400 ERROR [tls] tlscommon/tls.go:65 Failed loading client certificate tls: failed to find certificate PEM data in certificate input, but did find a private key; PEM inputs may have been switched
2022-08-31T22:43:45.337+0400 ERROR [kibana.stats] stats/stats.go:79 1 error: tls: failed to find certificate PEM data in certificate input, but did find a private key; PEM inputs may have been switched accessing config
Please help to fix the issue.
Thanks,
Tahseen