fluent-gemcommand is used to install Fluentd plugins. This is a wrapper around the
td-agent, make sure that you use
td-agent-gemcommand to install gems for it. Otherwise, you won't be able to find the installed plugins.
-poption is used to add an extra plugin directory to the load path. For example, if you put
/path/to/plugin, you can load it by specifying the
-poption like this:
-poption more than once.
/etc/fluent/plugindirectory to its load path. Thus, any additional plugins that are placed in
/etc/fluent/pluginwill be loaded automatically.
td-agent, Fluentd uses the
/etc/td-agent/plugindirectory instead of
/etc/fluent/pluginso put your plugins accordingly.
gem install fluentd
gem install fluent-plugin-elasticsearch
gem update # This is very dangerous. Update all existing gems
gem install fluentd -v 1.2.1
gem install fluent-plugin-elasticsearch -v 2.10.3
--gemfileoption, Fluentd will try to install the listed gems using Bundler. Fluentd will only load the listed gems separated from shared gems, and will also prevent unexpected plugin updates.
td-agentincludes them the first time.
fluent-gem listshows multiple plugin versions. Which one is used?
2.0.1version is used.