# Cant access aws elasticsearch instance

**URL:** <https://discuss.elastic.co/t/cant-access-aws-elasticsearch-instance/120273>\
**Category:** Logstash\
**Created:** [February 17, 2018, 12:02am UTC](https://discuss.elastic.co/t/cant-access-aws-elasticsearch-instance/120273 "2018-02-17T00:02:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![red888](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@red888](https://discuss.elastic.co/u/red888)\
**Post date:** [February 17, 2018, 12:02am UTC](https://discuss.elastic.co/t/cant-access-aws-elasticsearch-instance/120273/1 "2018-02-17T00:02:37Z")

</div>

So I confirmed I can curl the enpoint successfully but logstash cant access:  
output {  
elasticsearch {  
hosts =\> "[https://search-blahbluahbluah.eu-central-1.es.amazonaws.com/](https://search-blahbluahbluah.eu-central-1.es.amazonaws.com/)"  
timeout =\> 120  
index =\> "sdffsdfsdfsdfsdf"  
template\_name =\> "sdfsdfsdf"  
template\_overwrite =\> true

But it can't connect:  
`Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://search-blahbluahbluah.eu-central-1.es.amazonaws.com:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://search-blahbluahbluah.eu-central-1.es.amazonaws.com:9200/][Manticore::ConnectTimeout] connect timed out"}`

I dont know if this is related but when I make a curl request I need to include a trailing slash.

For example this doesn't work:  
`https://search-blahbluahbluah.eu-central-1.es.amazonaws.com:9200`

But this does work:  
`https://search-blahbluahbluah.eu-central-1.es.amazonaws.com/:9200`

How do I get logstash to include that trailing slash?

edit: this is working now, but cant see how to delete posts 😕

---

<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:** [March 17, 2018, 12:03am UTC](https://discuss.elastic.co/t/cant-access-aws-elasticsearch-instance/120273/2 "2018-03-17T00:03:13Z")

</div>

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