Hi,
Logstash version 1.5.1, Elasticsearch vesion 1.6
My ddwrt based switches can only send logs over UDP port 514.
I cannot get this to work, and continually get the following error:
{:timestamp=>"2015-06-28T11:56:22.898000+1200", :message=>"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-0.1.4/lib/logstash/inputs/udp.rb:68:in `udp_listener'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-udp-0.1.4/lib/logstash/inputs/udp.rb:49:in `run'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.1-java/lib/logstash/pipeline.rb:176:in `inputworker'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.1-java/lib/logstash/pipeline.rb:170:in `start_input'"], :level=>:warn}
At first I did have the port already in use, but that is not the case now:
netstat -an|grep 514
tcp 0 0 192.168.0.10:1514 0.0.0.0:* LISTEN
tcp 0 0 192.168.0.10:1514 192.168.0.10:46149 ESTABLISHED
tcp 0 0 192.168.0.10:46149 192.168.0.10:1514 ESTABLISHED
unix 3 [ ] STREAM CONNECTED 16514
My logstash input statement is simply:
input {
tcp {
host => "hillnet"
port => 1514
type => "syslog"
}
tcp {
host => "hillnet"
port => 1515
type => "synology"
}
udp {
port => 514
type => "ddwrt"
}
}
I have googled, but cannot find an answer. Any help would be appreciated.