fluent-gemcommand is used to install Fluentd plugins. This is a wrapper around the
td-agent-gemcommand. Otherwise (e.g. you use the command belonging to system, rvm, etc.), you won't be able to find your "installed" plugins.
-poption is used to add an extra plugin directory to the load path. For example, if you put the
/path/to/plugin, you can load the
out_foo.rbplugin by specifying the
-poption as shown below.
-poption more than once.
/etc/fluent/plugindirectory to its load path by default. Thus, any additional plugins that are placed in
/etc/fluent/pluginwill be loaded automatically.
/etc/fluent/plugin/out_foo.rbexists, you can use
/etc/td-agent/plugindirectory instead of
/etc/fluent/plugin. Please put your plugins here instead.
gem install fluentd
gem install fluent-plugin-elasticsearch
gem update # This is very dangerous. Update all existing gems
geminstalls fluentd v0.14 together even if you installed fluentd v0.12. This is unexpected result for fluentd v0.12 users.
gem install fluentd -v 0.12.43
gem install fluent-plugin-elasticsearch -v 1.9.3
/usr/sbin/td-agent-gemis also same because
--gemfileoption, Fluentd will try to install the listed gems using Bundler. Fluentd will only load listed gems separated from shared gems, and will also prevent unexpected plugin updates.