# Having trouble getting data to elasticsearch

**URL:** <https://discuss.elastic.co/t/having-trouble-getting-data-to-elasticsearch/34555>\
**Category:** Logstash\
**Created:** [November 13, 2015, 7:39pm UTC](https://discuss.elastic.co/t/having-trouble-getting-data-to-elasticsearch/34555 "2015-11-13T19:39:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)\
**Post date:** [November 13, 2015, 7:39pm UTC](https://discuss.elastic.co/t/having-trouble-getting-data-to-elasticsearch/34555/1 "2015-11-13T19:39:06Z")

</div>

So I am currently using the newest version of the ELK stack and I seem to be getting a few errors in elasticsearch logs and logstash. I have kibana up and running.

Logstash error:  
:message=\>"Connection failed to initialise", :error=\>"Unrecognized SSL message, plaintext connection?", :peer=\>"0:0:0:0:0:0:0:1:40864", :level=\>:warn}  
{:timestamp=\>"2015-11-13T16:56:11.026000+0000", :message=\>"Failed to install template: waited for [30s]", :level=\>:error}

Elasticsearch error:  
/logstash-_/\_mapping/field/_ Params: {ignore\_unavailable=false, allow\_no\_indices=false, index=logstash-_, include\_defaults=true, fields=_, \_=1447442189003}  
[logstash-\*] IndexNotFoundException[no such index]  
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.resolve(IndexNameExpressionResolver.java:630

this i believe is due to issue from logstash.  
Any help would be great.  
Thanks,  
Kenny

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 14, 2015, 2:42pm UTC](https://discuss.elastic.co/t/having-trouble-getting-data-to-elasticsearch/34555/2 "2015-11-14T14:42:33Z")

</div>

What does your elasticsearch output configuration in Logstash look like? It looks like you're requiring SSL connections but haven't configured Logstash to use SSL (or vice versa).

---

<div class="post-metadata">

**Author:** ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)\
**Post date:** [November 15, 2015, 5:11pm UTC](https://discuss.elastic.co/t/having-trouble-getting-data-to-elasticsearch/34555/3 "2015-11-15T17:11:39Z")

</div>

output {  
elasticsearch { host =\> localhost }  
}

I rolled back to the previous versions to see if that was the issue and I'm still receiving the same error.  
Also I don't know if this has to do with anything but I realized port 5000 is taken already by another application. Does logstash need to have port 5000 or is it able to run on any other port?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 15, 2015, 7:31pm UTC](https://discuss.elastic.co/t/having-trouble-getting-data-to-elasticsearch/34555/4 "2015-11-15T19:31:03Z")

</div>

Have you configured ES (or a proxy in front of ES) to use HTTPS on port 9200?

Logstash doesn't use port 5000 (or any other port) unless you configure it to do so.

---

<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/having-trouble-getting-data-to-elasticsearch/34555/5 "2017-07-06T05:22:46Z")

</div>


