Hi,
I'm having trouble installing the fluent-plugin-mail [1] plugin in td-agent [2]. I'm following the instructions and attempting to install the gem using either of the fluent-gem binaries included in td-agent:
[root@node0 ~]# rpm -ql td-agent | grep fluent-gem
/usr/lib64/fluent/ruby/bin/fluent-gem
/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.39/bin/fluent-gem
Oddly (or maybe intentionally) these commands are not identical [3].
No matter which I use to import the plugin, when I try to start td-agent with a `type mail' output match, it fails to find it:
2013-10-28 19:36:07 +0000 [info]: adding match pattern="email.test" type="mail"
2013-10-28 19:36:07 +0000 [error]: config error file="/etc/td-agent/td-agent.conf" error="Unknown output plugin 'mail'. Run 'gem search -rd fluent-plugin' to find plugins"
2013-10-28 19:36:07 +0000 [info]: process finished code=256
2013-10-28 19:36:07 +0000 [warn]: process died within 1 second. exit.
This is on Centos 6.4.
Thanks,
brian
[1] -
https://github.com/u-ichi/fluent-plugin-mail[2] - td-agent-1.1.17-0.x86_64
[3] -
[root@node0 ~]# /usr/lib64/fluent/ruby/bin/fluent-gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.23
- RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p327
- RUBY EXECUTABLE: /usr/lib64/fluent/ruby/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p327/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/local/rvm/gems/ruby-1.9.3-p327
- /usr/local/rvm/gems/ruby-1.9.3-p327@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
-
http://rubygems.org/ [root@node0 ~]# /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.39/bin/fluent-gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.9.3 (2012-11-10 patchlevel 327) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p327
- RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-1.9.3-p327/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p327/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/local/rvm/gems/ruby-1.9.3-p327
- /usr/local/rvm/gems/ruby-1.9.3-p327@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
-
http://rubygems.org/