2016-10-10 2 views
3

loggly에 대한 저장소를 만들 때 구성된 td-agent에서 아래 오류가 발생합니다. 아래와 같이 필요한 정보를td-agent 오류 loggly에 대해 [태그가있는 메시지를 출력 할 수 없음]

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

2016년 10월 10일 10시 18분 58초 0000 [오류] : 2016-10- 인수 잘못된 번호 (0 2) :/구성 loggly Sub 출력을 시작하지 못했습니다 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 : in 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 new ' /opt/td-agent/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 in plant ' /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 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 ​​/ g emst/2.1.0/gems/fluent-plugin-forest-0.3.1/lib/fluent/plugin/out_forest.rb : 168 : 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 : in 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에서 ' /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/ output.rb : 32 : in 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:in 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:in 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' /op/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// opt/td-agent/embedded/lib/ruby ​​/ lib/ruby ​​/ lib/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에서 ' ' 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- - - -

답변

2

우리는 n et-http-persistent 3.0.0은 Fluent-Plugin-Forest와 호환되지 않습니다. 그 이유는 td-agent가 fluent-plugin-forest를 사용하여 loggly로 로그를 보낼 수 없기 때문입니다.

솔루션 그물 HTTP 영구적 (3.0.0)

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

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

오류 [오류] 제거 :/옵션/TD-에이전트/임베디드/lib 디렉토리/루비/보석을 /2.1.0/gems/net-http-persistent-3.0.0/lib/net/http/persistent.rb:505:in 'initialize'