# Unable to connect to Elastic search with https from Logstash

**URL:** <https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-with-https-from-logstash/316995>\
**Category:** Logstash\
**Created:** [October 19, 2022, 12:43pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-with-https-from-logstash/316995 "2022-10-19T12:43:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pramod\_Kumar\_G](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pramod_kumar_g/32/112266_2.png) [@Pramod\_Kumar\_G](https://discuss.elastic.co/u/Pramod_Kumar_G)\
**Post date:** [October 19, 2022, 12:43pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-with-https-from-logstash/316995/1 "2022-10-19T12:43:00Z")

</div>

I am a new bie to ELK .I was able to start successfully elastic server and kibana.I was trying to start Logstash server but I am getting errors as below when run command  
**logstash -f .\config\sample.conf**

my sample.conf file is as below

> input {
> 
> }  
> output {  
> stdout {  
> codec =\> rubydebug  
> }  
> elasticsearch {  
> hosts =\> ["127.0.0.1:9200"]  
> index =\> "logdb"  
> user =\> "elastic"  
> password =\> "kwxb=9o7DlcQz+y7zCuY"  
> # SSL enabled  
> ssl =\> true  
> ssl\_certificate\_verification =\> false  
> cacert =\>C:\Users\503304203\Downloads\elasticsearch-8.4.3-windows-x86\_64\elasticsearch-8.4.3\
> 
> }
> 
> ![logstasherror](https://us1.discourse-cdn.com/elastic/original/3X/9/a/9ae801bd3fa5acc53b8bdbfa333b51cfb0179ab5.png)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [October 19, 2022, 2:40pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-with-https-from-logstash/316995/2 "2022-10-19T14:40:38Z")

</div>

> [@Pramod\_Kumar\_G](#):
>
> cacert =\>C:\Users\503304203\Downloads\elasticsearch-8.4.3-windows-x86\_64\elasticsearch-8.4.3\

`cacert =>"C:/Users/503304203/Downloads/elasticsearch-8.4.3-windows-x86_64/elasticsearch-8.4.3/missing_cert_name.crt"`

---

<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:** [November 16, 2022, 2:41pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-with-https-from-logstash/316995/3 "2022-11-16T14:41:15Z")

</div>

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