# Logstash started failing after making elasticsearch secure

**URL:** <https://discuss.elastic.co/t/logstash-started-failing-after-making-elasticsearch-secure/273020>\
**Category:** Logstash\
**Created:** [May 14, 2021, 1:18pm UTC](https://discuss.elastic.co/t/logstash-started-failing-after-making-elasticsearch-secure/273020 "2021-05-14T13:18:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohitarorait82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohitarorait82/32/82981_2.png) [@rohitarorait82](https://discuss.elastic.co/u/rohitarorait82)\
**Post date:** [May 14, 2021, 1:18pm UTC](https://discuss.elastic.co/t/logstash-started-failing-after-making-elasticsearch-secure/273020/1 "2021-05-14T13:18:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 11, 2021, 1:18pm UTC](https://discuss.elastic.co/t/logstash-started-failing-after-making-elasticsearch-secure/273020/2 "2021-06-11T13:18:35Z")

</div>

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