# Elasticsearch input with AWS ES as service

**URL:** <https://discuss.elastic.co/t/elasticsearch-input-with-aws-es-as-service/34988>\
**Category:** Logstash\
**Created:** [November 18, 2015, 8:13pm UTC](https://discuss.elastic.co/t/elasticsearch-input-with-aws-es-as-service/34988 "2015-11-18T20:13:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![treehouse](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@treehouse](https://discuss.elastic.co/u/treehouse)\
**Post date:** [November 18, 2015, 8:13pm UTC](https://discuss.elastic.co/t/elasticsearch-input-with-aws-es-as-service/34988/1 "2015-11-18T20:13:13Z")

</div>

wondering if anyone has tried streaming data out of AWS ES with the elasticsearch input plugin.. i can write to it fine, but seemingly can't read with the input plugin --

```
A plugin had an unrecoverable error. Will restart this plugin.
  Plugin: <LogStash::Inputs::Elasticsearch hosts=>[" *****************************.es.amazonaws.com"], port=>80, index=>"nginx-2015.11.17", size=>1000, scroll=>"5m", docinfo=>true, scan=>true, debug=>false, codec=><LogStash::Codecs::JSON charset=>"UTF-8">, query=>"{\"query\": { \"match_all\": {} } }", docinfo_target=>"@metadata", docinfo_fields=>["_index", "_type", "_id"], ssl=>false>
  Error: Connection refused - Connection refused {:level=>:error}

```

The IP can definitely talk with the es domain..

```
telnet *****************************.es.amazonaws.com 80
Trying ************...
Connected to *****************************.es.amazonaws.com.
Escape character is '^]'.
```

---

<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:** [July 6, 2017, 5:22am UTC](https://discuss.elastic.co/t/elasticsearch-input-with-aws-es-as-service/34988/2 "2017-07-06T05:22:19Z")

</div>


