when i searched in google, in most of the places Fluentd logs are sent to the elasticsearch using [fluent-plugin-elasticsearch] plugin … But i need to pass to Opensearch…
OpenSearch should be backwards compatible with those elasticsearch output plugins as long as the plugins are compatible with elasticsearch version 7.10 or below. When configuring a host, configure your destination host and port just like you would if you were going to an elasticsearch node. Mine ended up being “https://localhost:9200/” - make sure to set your username and password options as well.
In my dev environment, I noticed that I had to configure my output plugin to use https, as well as disable TLS verification (I don’t suggest that you use this configuration in production! Always make sure to properly secure your cluster.)