我正在使用Logstash输入插件。Ganglia gmond守护进程和logstash安装在同一台计算机上。Gmond将度量标准发送给自己。这是gmond的配置。
udp_send_channel {
host = 10.0.3.167
port = 8649
ttl = 1
}Logstash配置文件如下所示:
input {
ganglia {
host => "127.0.0.1"
type => "ganglia"
}
}
output {
elasticsearch {
host => "10.0.3.168"
}
}当logstash连接到gmond单播的端口时,我得到了以下错误:
{:timestamp=>"2014-01-04T12:50:38.422000+0000",
:message=>"ganglia udp listener died",
:address=>"127.0.0.1:8649",
:exception=>#<SocketError: bind: name or service not known>,
:backtrace=>
[
"org/jruby/ext/socket/RubyUDPSocket.java:160:in `bind'",
"file:/etc/logstash/logstash.jar!/logstash/inputs/ganglia.rb:61:in `udp_listener'",
"file:/etc/logstash/logstash.jar!/logstash/inputs/ganglia.rb:39:in `run'",
"file:/etc/logstash/logstash.jar!/logstash/pipeline.rb:156:in `inputworker'",
"file:/etc/logstash/logstash.jar!/logstash/pipeline.rb:150:in `start_input'"
],
:level=>:warn}如能提供任何帮助,我们将不胜感激。
发布于 2014-01-14 17:48:39
我正在回答我的问题,希望有人不会花一些时间来找出这个错误。logstash输入插件无法连接到端口,因为ganglia监视代理(gmond)使用Logstash运行在同一个端口上。要么您需要将gmond重定向到另一个端口,要么重新配置logstash的ganglia输入插件。
https://stackoverflow.com/questions/20921261
复制相似问题