Logstash ganglia input plugin - udp listener died
Description
Gliffy Diagrams
Activity
Show:
Salih Kardan January 14, 2014 at 5:55 PM
It is misconfiguration issue, everything seems ok. But some "value" field of ganglia is missing in ganglia.rb. You could try this diff:
data["program"] = "ganglia"
event["log_host"] = data["hostname"]
%w{name val dmax tmax slope type units}.each do |info|
event[info] = @metadata[data["name"]][info]
+
+
+ # - %w{dmax tmax slope type units}.each do |info|
+ # Fields in the data packet itself
+ %w{name spoof format val}.each do |info|
+ event[info] = data[info]
Ganglia input plugin could not connect the port which ganglia broadcasts metrics and statistics. Here is the log messages I see in logstash.log file.
{:timestamp=>"2014-01-04T16:19:56.101000+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}
FYI here is my logstash configuration:
input {
ganglia {
host => "127.0.0.1"
type => "ganglia"
}
}
output {
elasticsearch {
host => "10.0.3.168"
}
}