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

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/”, :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :message=>“Got response code ‘400’ contacting Elasticsearch at URL ‘https://localhost:9200/_license’”}

Later I see a message saying:

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.

1 Like

Ok so I went to Logstash OSS 7.10.2 | Elastic 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.

1 Like

It’s not actually the version matching issue as @Gsmitt pointed out - it’s actually that you need the OpenSearch Output Plugin for Logstash.

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