u-ichi / fluent-plugin-mail

Fluentd output plugin to send mail
https://rubygems.org/gems/fluent-plugin-mail
Other
48 stars 20 forks source link

Difficulty installing alongside td-agent #6

Closed bfallik closed 10 years ago

bfallik commented 10 years ago

Hi,

I'm having trouble using fluent-plugin-mail inside td-agent. I've installed the plugin via:

# /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-mail

but when I launch td-agent I get an error:

...
2013-10-28 18:15:47 +0000 [info]: adding match pattern="email.test" type="mail"
2013-10-28 18:15:47 +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 18:15:47 +0000 [info]: process finished code=256
2013-10-28 18:15:47 +0000 [warn]: process died within 1 second. exit.

I'm not sure why the plugin isn't being found by td-agent.

Thanks!

u-ichi commented 10 years ago

try command please.

# /usr/lib64/fluent/ruby/bin/fluent-gem list
bfallik commented 10 years ago

Sure:

[root@node0 ~]# /usr/lib64/fluent/ruby/bin/fluent-gem list

* LOCAL GEMS *

actionmailer (4.0.0, 3.2.12) actionpack (4.0.0, 3.2.12) activemodel (4.0.0, 3.2.12) activerecord (4.0.0, 3.2.12) activerecord-deprecated_finders (1.0.3) activeresource (3.2.12) activesupport (4.0.0, 3.2.12) arel (4.0.1, 3.0.2) atomic (1.1.14) aws-s3 (0.6.3) backbone-on-rails (1.0.0.1) bcrypt-ruby (3.0.1) builder (3.1.4, 3.0.4) bundler (1.3.5) bundler-unload (1.0.2) cancan (1.6.9) celluloid (0.15.1) celluloid-io (0.15.0) coffee-rails (3.2.2) coffee-script (2.2.0) coffee-script-source (1.6.3) commonjs (0.2.7) cool.io (1.1.1) daemons (1.1.9) devise (2.2.4) eco (1.0.0) eco-source (1.1.0.rc.1) ejs (1.1.1) erubis (2.7.0) eventmachine (1.0.3) execjs (2.0.1) executable-hooks (1.2.6, 1.2.3) flipper (0.6.1) fluent-logger (0.4.5) fluent-plugin-mail (0.0.4) fluentd (0.10.31) foreigner (1.4.2) god (0.13.3) hike (1.2.3) http_parser.rb (0.5.3) i18n (0.6.5) iobuffer (1.1.2) journey (1.0.4) jquery-rails (2.3.0) json (1.8.0) less (2.3.3) less-rails (2.3.3) libv8 (3.11.8.17 x86_64-linux) mail (2.5.4, 2.4.4) mime-types (1.25) minitest (4.7.5) msgpack (0.4.7) multi_json (1.8.2, 1.8.0) newrelic_rpm (3.6.7.159) nio4r (0.5.0) orm_adapter (0.4.0) pg (0.15.1) polyglot (0.3.3) rack (1.5.2, 1.4.5) rack-cache (1.2) rack-ssl (1.3.3) rack-test (0.6.2) rails (4.0.0, 3.2.12) railties (4.0.0, 3.2.12) rake (10.1.0) rdoc (3.12.2) redis (3.0.4) ref (1.0.5) rest-client (1.6.7) rubygems-bundler (1.4.1) rvm (1.11.3.8) sass (3.2.10) sass-rails (3.2.6) slim (1.3.9) slim-rails (1.1.1) sprockets (2.10.0, 2.2.2) sprockets-rails (2.0.1) streamio-ffmpeg (1.0.0) temple (0.6.6) therubyracer (0.11.4) thin (1.6.0, 1.5.1) thor (0.18.1) thread_safe (0.1.3) tilt (1.4.1) timers (1.1.0) treetop (1.4.15) twitter-bootstrap-rails (2.2.6) tzinfo (0.3.38, 0.3.37) uglifier (2.2.1) warden (1.2.3) xml-simple (1.1.2) yajl-ruby (1.1.0)

On Mon, Oct 28, 2013 at 10:24 PM, UEMURA Yuichi notifications@github.comwrote:

try command please.

/usr/lib64/fluent/ruby/bin/fluent-gem list

— Reply to this email directly or view it on GitHubhttps://github.com/u-ichi/fluent-plugin-mail/issues/6#issuecomment-27274015 .