That is the issue, from version 7.13+ the elasticsearch output plugin in Logstash checks if it is an Elasticsearch distributed by Elastic, which is not your case.
You should install the third party opensearch output plugin or downgrade Logstash, you won't be able to use the elasticsearch output plugin with Opensearch in this version.
For more information you should check the Opensearch foruns, as Opensearch is not supported here.
Hey i'm running into this issue as well. I was previously using logstash-oss 7.10.2 with opendistro 1.13.2. This ran fine, but when i upgrade due to the log4j issue, the OSS version is now telling me it doesn't like ES. When I tried the opensearch-output-logstash, I still ran into the version problem. The 7.10.2 version worked, does this version have the log4j vulnerability?
Not exactly, as I have never used it. It is a fork of our elasticsearch output plugin, and largely has the same options that were available at the time of fork, plus whatever else they have added.
Given the elasticsearch output plugin is invoked with something like:
output {
elasticsearch {
# ... plugin options
}
}
Invoking the opensearch output plugin would therefore be something like:
FROM docker.elastic.co/logstash/logstash:${logstash_version}
RUN bin/logstash-plugin install logstash-output-datadog_metrics
RUN bin/logstash-plugin install ?? <Want to install Opensearch plugin>
I had the same issues as above, while going through the lots of posts/blogs and figured out and fixed log4j vulnerabilities issue with my latest opendistro Elasticsearch image with logstash-0ss image, I am running this in K8s,
this is my dockerfile for Elasticsearch of opendistro,
FROM amazon/opendistro-for-elasticsearch:1.13.3
RUN ./bin/elasticsearch-plugin install --batch repository-azure
this is for opensearch logstash-oss image,
FROM opensearchproject/logstash-oss-with-opensearch-output-plugin:7.16.2
RUN bin/logstash-plugin install logstash-output-opsgenie
RUN bin/logstash-plugin install logstash-output-opensearch
and here is the details about output opensearch plugin,
whosoever is facing issues of logstash-oss image from "docker.elastic.co/logstash/logstash-oss:7.8.1" and trying to make it compatible with Elasticsearch image of "amazon/opendistro-for-Elasticsearch:1.13.3", above code snippet should resolve it.
I was getting errors in logstash about "ilm_enabled => false" parameter in output plugin, I had to remove that.
Hope above things will help and save others time....I have learned and fixed my issues by reading above discussion threads, thank you guys
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.