Unknown output plugin

2,482 views
Skip to first unread message

Piyush Agarwal

unread,
Jul 3, 2014, 10:54:26 AM7/3/14
to flu...@googlegroups.com
Hi All,

I have following plugin(file-alternative) installed in my mac machine at

/Library/Ruby/Gems/2.0.0/gems/fluent-plugin-file-alternative-0.1.5



still i am getting this error


config error file="/etc/td-agent/td-agent.conf" error="Unknown output plugin 'file_alternative'. Run 'gem search -rd fluent-plugin' to find plugins"

Masahiro Nakagawa

unread,
Jul 3, 2014, 11:10:06 AM7/3/14
to flu...@googlegroups.com
It's not td-agent gem path.
Use /opt/td-agent/embedded/bin/fluent-gem instead of gem command.


Use above path instead of /usr/lib/fluent/ruby/bin/fluent-gem.
/usr/lib/fluent/ruby/bin/fluent-gem. is for td-agent 1.x.




--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Piyush Agarwal

unread,
Jul 3, 2014, 11:27:21 AM7/3/14
to flu...@googlegroups.com
Thanks for the reply.
Solution worked on my mac.



On my linux machine

locate fluent-plugin-file-alternative

/root/.gem/specs/rubygems.org%80/quick/Marshal.4.8/fluent-plugin-file-alternative-0.1.5.gemspec


and 

sudo /usr/lib/fluent/ruby/bin/fluent-gem list


*** LOCAL GEMS ***


aws-sdk (1.38.0)

bigdecimal (1.1.0)

bson (1.10.2, 1.8.6)

bson_ext (1.8.6)

bundler (1.3.6)

cool.io (1.1.1)

diff-lcs (1.2.5)

fluent-logger (0.4.9)

fluent-mixin-config-placeholders (0.2.4)

fluent-mixin-plaintextformatter (0.2.6)

fluent-plugin-flume (0.1.1)

fluent-plugin-mongo (0.7.3)

fluent-plugin-rewrite-tag-filter (1.4.1)

fluent-plugin-s3 (0.4.0)

fluent-plugin-scribe (0.10.10)

fluent-plugin-td (0.10.20)

fluent-plugin-td-monitoring (0.1.2)

fluent-plugin-webhdfs (0.2.2)

fluentd (0.10.50)

git (1.2.7)

hirb (0.7.2)

http_parser.rb (0.5.1)

httpclient (2.3.4.1)

io-console (0.3)

iobuffer (1.1.2)

ipaddress (0.8.0)

jeweler (1.6.2)

json (1.7.7, 1.5.5)

ltsv (0.1.0)

mini_portile (0.6.0)

minitest (2.5.1)

mixlib-cli (1.5.0)

mixlib-config (2.1.0)

mixlib-log (1.6.0)

mixlib-shellout (1.4.0)

mongo (1.8.6)

msgpack (0.4.7)

nokogiri (1.5.10)

ohai (6.20.0)

parallel (0.6.5)

rake (0.9.2.2)

rdoc (3.9.5)

rspec (3.0.0)

rspec-core (3.0.1)

rspec-expectations (3.0.1)

rspec-mocks (3.0.1)

rspec-support (3.0.0)

rubyzip (0.9.9)

sigdump (0.2.2)

string-scrub (0.0.3)

systemu (2.5.2)

td (0.10.99)

td-client (0.8.61)

td-logger (0.3.23)

thrift (0.8.0)

uuidtools (2.1.4)

webhdfs (0.5.5)

yajl-ruby (1.1.0)



i am installing fluent-plugin -file-alternative by

fluent-gem install fluent-plugin-file-alternative


but still no changes 

and when i start td-agent 

config error file="/etc/td-agent/td-agent.conf" error="Unknown output plugin 'file_alternative'. Run 'gem search -rd fluent-plugin' to find plugins"


Masahiro Nakagawa

unread,
Jul 3, 2014, 11:34:20 AM7/3/14
to flu...@googlegroups.com
How about "sudo /usr/lib/fluent/ruby/bin/fluent-gem install" instead of fluent-gem command?
td-agent's fluent-gem is not visible by default.
Maybe, your fluent-gem is not td-agent's fluent-gem or RVM cause the problem.
Reply all
Reply to author
Forward
0 new messages