ошибка td-agent [Не удается вывести сообщения с тегом] для loggly

#fluentd

#fluentd

Вопрос:

Получение приведенной ниже ошибки в td-агенте, настроенном при создании хранилища для loggly. требуемая информация, как показано ниже

 ubuntu 14.04. fluent-plugin-forest (0.3.3) fluent-plugin-loggly (0.0.8)
  

2016-10-10 10:18:58 0000 [ошибка]: не удалось настроить / запустить вспомогательный логический вывод: неверное количество аргументов (2 вместо 0)
2016-10-10 10:18:58 0000 [ошибка]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/net-http-persistent-3.0.0/lib/net/http/persistent.rb:505: в initialize'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-loggly-0.0.8/lib/fluent/plugin/out_loggly.rb:37:in
новом’
/opt/ td-агенте/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-loggly-0.0.8/lib/fluent/plugin/out_loggly.rb:37:в start'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-forest-0.3.1/lib/fluent/plugin/out_forest.rb:133:in
блоке на заводе’
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-forest-0.3.1/lib/fluent/plugin/out_forest.rb:128:на synchronize'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-forest-0.3.1/lib/fluent/plugin/out_forest.rb:128:in
заводе ‘
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-forest-0.3.1/lib/fluent/plugin/out_forest.rb:168:inдалее emit'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/output.rb:32:in

/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/buffer.rb:193:в block in emit'
/opt/td-agent/embedded/lib/ruby/2.1.0/monitor.rb:211:in
mon_synchronize’
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/buffer.rb:187:в emit'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/output.rb:448:in
emit’
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/output.rb:32:в next'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/out_copy.rb:74:in
emit’
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/event_router.rb:88:в emit_stream'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/in_tail.rb:248:in
receive_lines’
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/in_tail.rb:343:в call'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/in_tail.rb:343:in
wrap_receive_lines’
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/in_tail.rb:536:в call'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/in_tail.rb:536:in
on_notify’
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/in_tail.rb:369: в on_notify'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/in_tail.rb:470:in
вызове ‘
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/in_tail.rb:470:в on_change'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/cool.io-1.4.4/lib/cool.io/loop.rb:88:in
run_once’
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/cool.io-1.4.4/lib/cool.io/loop.rb:88: run'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/in_tail.rb:233:in
выполняется ‘
2016-10-10 10:18:58 0000 [ошибка]: не удается выводить сообщения с тегом ‘*****-nginx-ip-

Ответ №1:

Мы обнаружили, что net-http-persistent 3.0.0 несовместим с fluent-plugin-forest. из-за этого td-agent не может отправить журнал в loggly с помощью fluent-plugin-forest.

решение удалить net-http-persistent(3.0.0)

td-agent-gem uninstall net-http-persistent --force

td-agent-gem install net-http-persistent -v 2.9.4

ошибка [ошибка]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/net-http-persistent-3.0.0/lib/net/http/persistent.rb:505: в разделе «инициализация»