Closed btmndkh closed 2 years ago
I tried this handshake problem is solved but still can't connect with elasticsearch
output.elasticsearch: hosts: ["https://192.168.1.1:9200"] protocol: "https" username: 'elastic' password: 'changeme' ssl.enabled: true ssl.certificate_authorities: ["/path/elastdocker/secrets/certs/ca/ca.crt"] ssl.verification_mode: none
just "ssl.verification_mode: none" works
Could you please guide me to how to configure heartbeat.yml for easly access with elasticsearch?
I'm tried following configuration...still no luck :(
output
output.elasticsearch: hosts: ["https://192.168.1.1:9200"] protocol: "https" username: elastic password: changeme
Use SSL settings for HTTPS.
ssl.enabled: true
ssl.certificate_authorities: ["/path/elastdocker/secrets/certs/ca/ca.crt"]
ssl.certificate: "/path/elastdocker/secrets/certs/elasticsearch/elasticsearch.crt"
ssl.key: "/path/elastdocker/secrets/certs/elasticsearch/elasticsearch.key"
tried - not working
https://www.elastic.co/guide/en/beats/heartbeat/8.0/elasticsearch-output.html
test
root@test:/etc/heartbeat# heartbeat test output elasticsearch: https://192.168.1.1:9200... parse url... OK connection... parse host... OK dns lookup... OK addresses: 192.168.1.1 dial up... OK TLS... security... WARN server's certificate chain verification is disabled handshake... ERROR x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "Elastic Certificate Tool Autogenerated CA")