# ElasticSearch input plugin over SSL (doesn't work for me)

**URL:** <https://discuss.elastic.co/t/elasticsearch-input-plugin-over-ssl-doesnt-work-for-me/82230>\
**Category:** Elasticsearch\
**Created:** [April 12, 2017, 10:24pm UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-over-ssl-doesnt-work-for-me/82230 "2017-04-12T22:24:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamthealex](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@iamthealex](https://discuss.elastic.co/u/iamthealex)\
**Post date:** [April 12, 2017, 10:24pm UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-over-ssl-doesnt-work-for-me/82230/1 "2017-04-12T22:24:31Z")

</div>

I dunno what I'm doing wrong.  
I found this old topic: [Elasticsearch input plugin not working over ssl](https://discuss.elastic.co/t/elasticsearch-input-plugin-not-working-over-ssl/59051)

My elastic cluster is configured to require SSL.  
Yes, my cluster listens on port 9200.

I have this config:

input {

# Read all documents from Elasticsearch matching the given query

elasticsearch {

```
hosts => ['elastic1.example.comt:9200']
user => "xxxxx"
password => "yyyyy"
ssl => true

index => "access-log-lines-2017.04.12"
size => 3
query => '{ "query": { "match": { "resp-code": 200 } } }'

```

}  
}

filter {}

output {  
stdout {}  
}

I get this output:

bin/logstash -w 1 -f /home/anelson/reader.conf  
Sending Logstash's logs to /home/anelson/Downloads/logstash-5.1.2/logs which is now configured via log4j2.properties  
[2017-04-12T18:22:08,246][INFO][logstash.pipeline] Starting pipeline {"id"=\>"main", "pipeline.workers"=\>1, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>5, "pipeline.max\_inflight"=\>125}  
[2017-04-12T18:22:08,253][INFO][logstash.pipeline] Pipeline main started  
[2017-04-12T18:22:08,289][ERROR][logstash.pipeline] A plugin had an unrecoverable error. Will restart this plugin.  
Plugin: \<LogStash::Inputs::Elasticsearch hosts=\>["[elastic1.example.com:9200](http://elastic1.example.com:9200)"], user=\>"readonly", password=\>, ssl=\>true, index=\>"access-log-lines-2017.04.12", size=\>3, query=\>"{ "query": { "match": { "resp-code": 200 } } }", id=\>"9b8b113521b0bbd41ada639d036b6fe9a2865d1a-1", enable\_metric=\>true, codec=\>\<LogStash::Codecs::JSON id=\>"json\_a5ce29fb-5aca-4f00-b8c4-e7b6267cbbad", enable\_metric=\>true, charset=\>"UTF-8"\>, scroll=\>"1m", docinfo=\>false, docinfo\_target=\>"@metadata", docinfo\_fields=\>["\_index", "\_type", "\_id"]\>  
Error: initialize: name or service not known

---

<div class="post-metadata">

**Author:** ![iamthealex](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@iamthealex](https://discuss.elastic.co/u/iamthealex)\
**Post date:** [April 12, 2017, 10:36pm UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-over-ssl-doesnt-work-for-me/82230/2 "2017-04-12T22:36:12Z")

</div>

never mind. operator error. I had a typo in my domain name.

---

<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:** [May 10, 2017, 10:37pm UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-over-ssl-doesnt-work-for-me/82230/3 "2017-05-10T22:37:55Z")

</div>

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