Not able to use Fluentd custom plugin "[error]: config error file="fluent.conf" error_class=Fluent::NotFoundPluginError error="Unknown output plugin 'remove_tag'" #4511
Unanswered
Tamannaverma1912
asked this question in
Q&A
Replies: 2 comments 5 replies
-
@Tamannaverma1912 Thanks for detail report and sorry for the trouble.
Could you please tell me which documentation you saw? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I haven't been able to confirm this in detail yet, but it may have something to do with the following issue: In this case, you need to specify all plugin paths including the default path with multiple fluentd --config fluent.conf -p /fluentd/plugins/ -p /fluentd/plugins/fluent-plugin-remove_tag/lib/fluent/plugin/ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is a problem?
We were trying to use fluentd cutsom plugin to make out plugin but fluentd running into NotFoundPluginError. And this behavior not just happened with the custom plugin but also with the build in plugin. Not really sure what we are missing and documentation itself is not very clear at all.
So for this we are using fluent/fluentd:edge-debian and for testing we ran our tests inside the fluentd docker container itself.
Describe the configuration of Fluentd
Firstly,
docker exec -it --user root fluentd-container /bin/bash
In this we have fluend directory at
`ls fluentd/plugins/
fluent-plugin-remove_tag fluent-plugin-test rewrite_tag_filter.rb`
But the documentation says that our plugin path should be at /etc/fluent/plugin but nothing related to fluentd is inside /etc/
Moving on Inside /fluentd/plugins/ for custom plugin we used
bundle gem fluent-plugin-remove_tag
& output was
We modified fluent-plugin-remove_tag.gemspec to
and lib/fluent/plugin/output/remove_tag.rb to
and then ran gem build fluent-plugin-remove_tag.gemspec && gem install fluent-plugin-remove-tag-0.1.0.gem
Gem was successfully build and was there when we did
gem list
and This is the fluent.conf we used
This is basic config we just wanted to test the working of our custom plugin E2E and when we then ran
fluentd --config fluent.conf -p /fluentd/plugins/fluent-plugin-remove_tag/lib/fluent/plugin/
Don't know what we missing here, Can anyone help. This error was not just with the custom plugin but built in plugin too
fluentd --config fluent.conf -p /fluentd/plugins/
Describe the logs of Fluentd
No response
Environment
Beta Was this translation helpful? Give feedback.
All reactions