MY collectd正在端口25826向logstash发送数据,但我在运行logstash时看到此错误
UDP listener died {:exception=>#<SocketError: bind: name or service not known>, :backtrace=>["org/jruby/ext/socket/RubyUDPSocket.java:160:in `bind'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-udp-2.0.5/lib/logstash/inputs/udp.rb:67:in `udp_listener'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-udp-2.0.5/lib/logstash/inputs/udp.rb:50:in `run'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstash/pipeline.rb:342:in `inputworker'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstash/pipeline.rb:336:in `start_input'"], :level=>:warn}
任何人都知道解决方案吗?
答案 0 :(得分:2)
得到修复
Logstash没有错误收集器collectd没有发送数据 logstash udp port通过在网络插件中添加conf来纠正它 collectd在
collectd.conf
中启用了该插件,并将主机名替换为logstash主机和udp端口。
答案 1 :(得分:2)
您只需在Collectd.conf中查找interfaces
插件设置,将主机和端口更改为logstash host and udp port
。