I want to send syslog data to logstash.
I'm trying to do this with the beats Syslog Output Plugin.
filebeat config:
filebeat:
prospectors:
-
paths:
- /var/log/messages
- /var/log/audit/audit.log
document_type: syslog
output:
type: syslog
syslog:
network: udp
raddr: ["localhost:1234"]
logstash config:
input {
tcp {
port => "1234"
type => syslog
}
}
Something must be wrong because filebeat wont start and I get these errors:
ERR Failed to publish events caused by: write tcp 127.0.0.1:55350->127.0.0.1:9999: write: connection reset by peer