gpt4 book ai didi

fluentd - td-agent错误[无法输出带有标签的消息]

转载 作者:行者123 更新时间:2023-12-02 01:21:34 24 4
gpt4 key购买 nike

在为loggly创建存储时配置的td-agent上出现以下错误。所需信息如下

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

2016-10-10 10:18:58 +0000 [错误]:配置/启动子输出失败,loggly:参数数量错误(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: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
块中
/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
next'
/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:在 next'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/plugin/out_copy.rb:74:in
中发出
/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
接收行中
/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:in 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:in 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 ----的消息

最佳答案

我们发现net-http-persistent 3.0.0与fluent-plugin-forest不兼容。因为该td代理无法使用fluent-plugin-forest将日志发送到loggly。

解决方案删除net-http-persistent(3.0.0)
td-agent-gem uninstall net-http-persistent --forcetd-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:inʻinitialize '

关于fluentd - td-agent错误[无法输出带有标签的消息],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39956193/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com