fluent-plugin-aws-elasticsearch-service icon indicating copy to clipboard operation
fluent-plugin-aws-elasticsearch-service copied to clipboard

Error Starting Fluentd

Open wooxudong opened this issue 3 years ago • 5 comments

Problem

The fluend container would not be able to start with following errors Screenshot 2021-09-22 at 5 43 01 PM ...

Steps to replicate

FROM bitnami/fluentd:1.14.0

RUN fluent-gem install 'fluent-plugin-aws-elasticsearch-service' -v 2.4.1

Expected Behavior or What you need to ask

Fluentd to start correctly ...

Using Fluentd and ES plugin versions

Fluentd: v1.14.0 fluent-plugin-aws-elasticsearch-service: v 2.4.1

wooxudong avatar Sep 23 '21 07:09 wooxudong

Hi, I have the same issue with fluent/fluentd:v1.14.1.

pavel-trubitsyn avatar Sep 29 '21 17:09 pavel-trubitsyn

Solution https://github.com/uken/fluent-plugin-elasticsearch/issues/912#issuecomment-894242260

pavel-trubitsyn avatar Sep 29 '21 18:09 pavel-trubitsyn

@pavel-trubitsyn , thanks for the solution.

I think it shall be a proper fix for this plugin to solve the dependency chain ?

wooxudong avatar Oct 04 '21 02:10 wooxudong

Any updates on this ?

wooxudong avatar Nov 08 '21 03:11 wooxudong

I've been watching this problem overall for the last year. Today I got it working after learning about an OpenSearch-specific plugin from the Fluentd maintainers.

I had previously built a container with plugins from this repo to push logs to AWS's OpenSearch, but when trying to update it, ran into these dependency conflicts. I upgraded from: fluent/fluentd:v1.13.3-debian-1.0 to fluent/fluentd:v1.14.5-debian-1.0. The Dockerfile I kept the same, other than removing any elasticsearch plugins and replacing it with: fluent-plugin-opensearch:1.0.1 (https://github.com/fluent/fluent-plugin-opensearch).

Then I modified the config to change the output @type aws-elasticsearch-service to opensearch. I removed 2 parameters that are not supported by this plugin (log_es_400_reason and suppress_type_name) and it's working just fine. I see there are many issues in this repo that relate to this problem. Hopefully this will help someone resolve it. EDIT: There's a bug with the Opensearch plugin: https://github.com/fluent/fluent-plugin-opensearch/issues/24

DaemonDude23 avatar Feb 25 '22 19:02 DaemonDude23