My logstash-1.5.4 install does not collect any logs via the udp or the syslog input plugin anymore. I have the following config file:
input {
file{
path => "/opt/logs/tcpdump.log"
}
udp {
port => "514"
type => "syslog"
}
syslog{
type => "syslog"
}
}
Whenever I quote out udp and syslog logstash runs normal and it collects logs via the file input command and sends it to my output but enabling udp or syslog generates no logs at all. I have checked port 514 with tcpdump and see that input does arrive there. Also when I close logstash if I have udp or tcp enabled it doesn't shut down properly and I have to kill the running process before being able to restart logstash.
Nothing appears in the logstash log if I use the -l option. I have tried updating both syslog and udp plugin but the same thing happens.
Oh, right. The syslog input defaults to port 514 so you can't have a UDP listener on the same port. Pick one. You don't have any other software (like rsyslog) that listens on port 514? Check with lsof?
I don't have both active at the same time, I used to run it with the udp-input but when that stopped working I tried it with the syslog-input instead. The logging I just posted was from only having the syslog-input active, udp was commented out.
If I shut down logstash and check with netstat there is nothing else running on port 514.
I just tried out another port for the udp input and on the first run it works great, but after I close logstash and try to reboot it that secondary port also fails. So it has to be some sort of leftover process somewhere, although both lsof and netstat report nothing left running on the port.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.