Host name 'localhost' does not match the certificate subject provided by the peer (CN=elasticsearch)
How can I deal with it? Can I just verify certificate? I don't want hardcode any IP etc.
In /etc/logstash/logstash.yml
I have xpack.monitoring.elasticsearch.ssl.verification_mode: certificate
but this not help with such error. Similar option is in Kibana and it works fine...
Maybe should I change some name in ES config to fix it?
I would like to keep ssl_certificate_verification
set to true
because of security reasons.