I am trying to modify an existing Fluentd plugin and use it with my setup. So I:
- git cloned the plugin repository from github.
git clone <url> - Edited change
gem build plugin.gemspecgem install plugin.gem- Created a configuration that mentions the type of plugin
- Ran
fluentd -c <fluend_conf.conf> -vv
And I got this in the log fluentd ( Free plugin-fast is the plugin I edited and the plugin type is 'swift' ):
2017-03-22 15:00:27 +0000 [info]: fluent/engine.rb:126:block in configure:
gem 'fluent-plugin-swift' version '0.0.1'
2017-03-22 15:00:27 +0000 [error]: fluent/supervisor.rb:369:rescue in
main_process: config error file="fluend_conf.conf" error="Unknown output plugin
'swift'. Run 'gem search -rd fluent-plugin' to find plugins"
EDIT-1: for clarification,
I also checked the naming convention of the plugin that needs to be registered. The plugin is present in <base_dir>/lib/fluent/plugin/. Also the file name out_swift.rb. Finally, inside the file, the plugin registers as:
Fluent::Plugin.register_output('swift', self)
- , , , ?
: , , - , .
, , ?