# Can not get input from elasticsearch

**URL:** <https://discuss.elastic.co/t/can-not-get-input-from-elasticsearch/238988>\
**Category:** Logstash\
**Created:** [June 28, 2020, 6:57am UTC](https://discuss.elastic.co/t/can-not-get-input-from-elasticsearch/238988 "2020-06-28T06:57:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AayushPatel](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@AayushPatel](https://discuss.elastic.co/u/AayushPatel)\
**Post date:** [June 28, 2020, 6:57am UTC](https://discuss.elastic.co/t/can-not-get-input-from-elasticsearch/238988/1 "2020-06-28T06:57:46Z")

</div>

Hi, I wanna to get input from my elasticsearch and doing enrichment on the data in it but the problem is connecting to es via SSL, i get this error every time and can not handle it anyway

the code

```auto
input {
      elasticsearch {
                hosts => ["https://localhost:9200"]
                ssl=> true
                ca_file => "/usr/share/elasticsearch/rootCA.crt.pem"
                user => "user"
                password => "password"
                query => '{"query" : {"match_all" : {}}}'
                index => "utility"
      }
}

```

the error

```auto
[ERROR] 2020-06-28 11:12:14.992 [[main]<elasticsearch] javapipeline - A plugin had an unrecoverable error. Will restart this plugin.
  Pipeline_id:main
  Plugin: <LogStash::Inputs::Elasticsearch password=><password>, ca_file=>"/usr/share/elasticsearch/rootCA.crt.pem", hosts=>["https://localhost:9200"], query=>"{\"query\" : {\"match_all\" : {}}}", index=>"utility", id=>"77afca6e2babc6030ddd1ce9c7c208a2dd648596e5161d152ed8f57c4df66273", ssl=>true, user=>"siem_read", enable_metric=>true, codec=><LogStash::Codecs::JSON id=>"json_a5fbc092-54b7-4195-8c27-80eafa19219c", enable_metric=>true, charset=>"UTF-8">, size=>1000, scroll=>"1m", docinfo=>false, docinfo_target=>"@metadata", docinfo_fields=>["_index", "_type", "_id"]>
  Error: https
  Exception: Manticore::ResolutionFailure
  Stack: /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore/response.rb:37:in `block in initialize'

```

any help would be grateful

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 28, 2020, 3:53pm UTC](https://discuss.elastic.co/t/can-not-get-input-from-elasticsearch/238988/2 "2020-06-28T15:53:14Z")

</div>

> [@AayushPatel](#):
>
> `Exception: Manticore::ResolutionFailure`

This is a DNS resolution failure. If localhost resolves the only other hostname I can think it would be trying to resolve is for OCSP or a CRL. Check the details of the certificates involved to see what they use.

---

<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 26, 2020, 3:53pm UTC](https://discuss.elastic.co/t/can-not-get-input-from-elasticsearch/238988/3 "2020-07-26T15:53:17Z")

</div>

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