fluent-plugins-nursery / fluent-plugin-cloudwatch-logs

CloudWatch Logs Plugin for Fluentd
MIT License
201 stars 141 forks source link

Unknown output plugin 'cloudwatch_logs' #226

Closed Pi-George closed 3 years ago

Pi-George commented 3 years ago

Problem

From my fluentd log file: 2021-02-22 12:47:23 +0000 [error]: config error file="/etc/td-agent/td-agent.conf" error_class=Fluent::ConfigError error="Unknown output plugin 'cloudwatch_logs'. Run 'gem search -rd fluent-plugin' to find plugins"

Installed using gem as described in the docs, seem to have worked fine: Done installing documentation for bundler, msgpack, yajl-ruby, cool.io, sigdump, serverengine, http_parser.rb, concurrent-ruby, tzinfo, tzinfo-data, strptime, fluentd, jmespath, aws-partitions, aws-eventstream, aws-sigv4, aws-sdk-core, aws-sdk-cloudwatchlogs, fluent-plugin-cloudwatch-logs after 23 seconds 19 gems installed

gem search -ld fluent-plugin shows that I definitely have it installed:

*** LOCAL GEMS ***

fluent-plugin-cloudwatch-logs (0.13.4)
Author: Ryota Arai
Homepage:
https://github.com/fluent-plugins-nursery/fluent-plugin-cloudwatch-l
ogs
License: MIT
Installed at: /var/lib/gems/2.5.0

CloudWatch Logs Plugin for Fluentd

Steps to replicate

¯\(ツ)/¯ following the instructions in the readme as best I can

Expected Behavior or What you need to ask

For fluentd to start

Using Fluentd and CloudWatchLogs plugin versions

Pi-George commented 3 years ago

td-agent-gem install fluent-plugin-cloudwatch-logs seems to have solved this issue. Recommend adding this to your readme

cosmo0920 commented 3 years ago

I'd added a description what you suggested.