Why i can't connect heartbeat to elasticsearch?

There is a problem when i want to connect heartbeat to elasticsearch. I already config on heartbeat.yml in the correct way. I also input ca fingerprint from elasticsearch. Anyone can figure out my problem?

Screenshot 2024-05-17 135457

Hi @eructro,

Welcome to Elastic Community!

The error you're seeing seems to indicate the self-signed CA has not been made available to heartbeat. Please make sure the configuration under output.elasticsearch.ssl is correct and heartbeat process has the enough permissions to access it.

Thanks @emilioalvap for the feedback, here's the heartbeat.yml configuration image, I've used a fingerprint from my elasticsearch and still no work. Is my configuration wrong?

Hi @eructro,

Has the fingerprint been generated with the command listed in heartbeat docs?

openssl x509 -fingerprint -sha256 -noout -in ./ca.crt | awk --field-separator="=" '{print $2}' | sed 's/://g'

It's best to keep the letter-casing of the result unmodified.