# Logstash unable to reach es cluster on elastic cloud

**URL:** <https://discuss.elastic.co/t/logstash-unable-to-reach-es-cluster-on-elastic-cloud/79627>\
**Category:** Logstash\
**Created:** [March 22, 2017, 5:27pm UTC](https://discuss.elastic.co/t/logstash-unable-to-reach-es-cluster-on-elastic-cloud/79627 "2017-03-22T17:27:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![geantbrun](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@geantbrun](https://discuss.elastic.co/u/geantbrun)\
**Post date:** [March 22, 2017, 5:27pm UTC](https://discuss.elastic.co/t/logstash-unable-to-reach-es-cluster-on-elastic-cloud/79627/1 "2017-03-22T17:27:48Z")

</div>

Hi,  
I'm experimenting with the elastic cloud for the first time and I have some issue when I try the simple example found here: [https://www.elastic.co/blog/building-cloud-sandbox-with-sample-data-v2](https://www.elastic.co/blog/building-cloud-sandbox-with-sample-data-v2). When I try to do the logstash (ver 2.1.3) command, I get this error (stars and CAPS are mine):

```
https: unknown error {:class=>"Manticore::ResolutionFailure", :level=>:error}
Logstash startup completed
..........Attempted to send a bulk request to Elasticsearch configured at 
'["HTTP://HTTPS://***.us-east-1.aws.found.io:9243/"]', but an error occurred
 and it failed! 
Are you sure you can reach elasticsearch from this machine using the 
configuration provided? 
{:client_config=>{:hosts=>["http://https://***.us-east-1.aws.found.io:9243/"]
  , :ssl=>nil, :transport_options=>{...} ...}

```

My apache\_logstash.conf seems to be good:

```
  elasticsearch {
    hosts => "https://***.us-east-1.aws.found.io:9243"
    user => "***"
    password => "***"
    index => "apache_elastic_example"
    template => "./apache_template.json"
    template_name => "apache_elastic_example"
    template_overwrite => true
  }

```

The error seems to show that the url is not well formed. I removed in my conf file the https header but it does not work, maybe because it tries to use http and not https. How could I force the utilization of https? Can I use https with basic authentication? The Import Data shown at the link provided above seems to say yes.

By the way, this simple curl command works:

```
curl -XGET -u ***-p https://***.us-east-1.aws.found.io:9243

```

Thanks for your help

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 22, 2017, 5:44pm UTC](https://discuss.elastic.co/t/logstash-unable-to-reach-es-cluster-on-elastic-cloud/79627/2 "2017-03-22T17:44:57Z")

</div>

> [@geantbrun](#):
>
> "[HTTP://HTTPS](HTTP://HTTPS)://\*\*\*.us-east-1.aws.found.io:9243/"

It looks like that old version of Logstash does not allow the protocol to be specified as part of the string. I would recommend upgrading to the latest version of Logstash.

---

<div class="post-metadata">

**Author:** ![geantbrun](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@geantbrun](https://discuss.elastic.co/u/geantbrun)\
**Post date:** [March 22, 2017, 5:54pm UTC](https://discuss.elastic.co/t/logstash-unable-to-reach-es-cluster-on-elastic-cloud/79627/3 "2017-03-22T17:54:22Z")

</div>

You're right, it works with logstash's last version. Thank you for your help Christian.  
P.

---

<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:** [April 19, 2017, 5:54pm UTC](https://discuss.elastic.co/t/logstash-unable-to-reach-es-cluster-on-elastic-cloud/79627/4 "2017-04-19T17:54:26Z")

</div>

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