Can Opensearch or opensearchdashboard read the logs from fluentd

Hi Team,

Can anyone please let me know below query…

Can Fluentd send the logs to opensearch ?

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…

Can you please suggest me how to achieve this…

Thanks,
Hema

Hi Hema!

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.)

Here’s the agent I’m using with that plugin: GitHub - fluent/fluent-bit: Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows

Thanks! Hope that helps! Let me know if there’s more questions I can answer for you.

Nate

please look to the newly released fluent-plugin-opensearch
link: GitHub - fluent/fluent-plugin-opensearch: OpenSearch Plugin for Fluentd