Logstash started failing after making elasticsearch secure

Hi All ,

My elk cluster of one node was working fine. I tried to make it secure then elasticsearch and kibana are working fine , however logstash is not able to connect with elasticsearch.

I have done below changes in the conf file

output{

  elasticsearch {
        ssl => true
        ssl_certificate_verification => true
        cacert => '/etc/logstash/config/certs/ca.crt'
        hosts => ["new_master.elastic.test.com:9200"]
        index => "new_visualization"
        user => "elastic"
        password => "password"
     }
}

I also din below changes in logstash.yml

xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: logstash_system
xpack.monitoring.elasticsearch.password: 'password'
xpack.monitoring.elasticsearch.hosts: [ 'https://new_master.elastic.test.com:9200' ]
xpack.monitoring.elasticsearch.ssl.certificate_authority: /etc/logstash/config/certs/ca.crt

Can someone please suggest what needs to be updated here

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.