# Issues with Logstash-7-13-2 not connecting to Elasticsearch - Unable to get license information

**URL:** <https://forum.opensearch.org/t/issues-with-logstash-7-13-2-not-connecting-to-elasticsearch-unable-to-get-license-information/7253>\
**Category:** Open Source Elasticsearch and Kibana\
**Created:** [October 12, 2021, 1:35am UTC](https://forum.opensearch.org/t/issues-with-logstash-7-13-2-not-connecting-to-elasticsearch-unable-to-get-license-information/7253 "2021-10-12T01:35:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mandougou](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mandougou](https://forum.opensearch.org/u/mandougou)\
**Post date:** [October 12, 2021, 1:35am UTC](https://forum.opensearch.org/t/issues-with-logstash-7-13-2-not-connecting-to-elasticsearch-unable-to-get-license-information/7253/1 "2021-10-12T01:35:58Z")

</div>

Hi Community, my logstash is having issues connecting to elasticsearch. Not sure if I need a license for this. Please help.

[2021-10-11T21:33:12,517][INFO][logstash.outputs.elasticsearch][main] Elasticsearch version determined (1.1.0) {:es\_version=\>1}  
[2021-10-11T21:33:12,563][ERROR][logstash.outputs.elasticsearch][main] Unable to get license information {:url=\>“[https://admin:xxxxxx@localhost:9200/](https://admin:xxxxxx@localhost:9200/)”, :exception=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :message=\>“Got response code ‘400’ contacting Elasticsearch at URL ‘[https://localhost:9200/\_license](https://localhost:9200/_license)’”}

Later I see a message saying:

Could not connect to a compatible version of Elasticsearch

---

<div class="post-metadata">

**Author:** ![Gsmitt](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gsmitt/32/1718_2.png) [@Gsmitt](https://forum.opensearch.org/u/Gsmitt)\
**Post date:** [October 12, 2021, 2:57am UTC](https://forum.opensearch.org/t/issues-with-logstash-7-13-2-not-connecting-to-elasticsearch-unable-to-get-license-information/7253/2 "2021-10-12T02:57:17Z")

</div>

Hello,

> [@mandougou](#):
>
> Could not connect to a compatible version of Elasticsearch

I believe Elasticsearch version 7.10.2 is required. Since you having troubles with logstash 7.13 that may be your problem. Versions have to match.

---

<div class="post-metadata">

**Author:** ![mandougou](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mandougou](https://forum.opensearch.org/u/mandougou)\
**Post date:** [October 12, 2021, 3:45am UTC](https://forum.opensearch.org/t/issues-with-logstash-7-13-2-not-connecting-to-elasticsearch-unable-to-get-license-information/7253/3 "2021-10-12T03:45:09Z")

</div>

Ok so I went to [Logstash OSS 7.10.2 | Elastic](https://www.elastic.co/downloads/past-releases/logstash-oss-7-10-2) and downloaded 7-10-2 installed it. Configured the file yml file in /etc/logstash/conf.d/xyz.conf. Started the logstash service and it works now thanks dude.

---

<div class="post-metadata">

**Author:** ![searchymcsearchface](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/searchymcsearchface/32/868_2.png) [@searchymcsearchface](https://forum.opensearch.org/u/searchymcsearchface)\
**Post date:** [October 13, 2021, 2:37pm UTC](https://forum.opensearch.org/t/issues-with-logstash-7-13-2-not-connecting-to-elasticsearch-unable-to-get-license-information/7253/4 "2021-10-13T14:37:28Z")

</div>

It’s not actually the version matching issue as @Gsmitt pointed out - it’s actually that you need the [OpenSearch Output Plugin for Logstash](https://opensearch.org/downloads.html#logstash-oss-with-opensearch-output-plugin).

Later versions of the ES output plugin have an explicit block for OSS Elasticsearch and OpenSearch.
