tsaikd / gogstash

Logstash like, written in golang
MIT License
644 stars 106 forks source link

Add input socket udp support #69

Closed tengattack closed 5 years ago

tengattack commented 5 years ago

Hi, I have added a UDP input support.

The breaking change is we have to use \n as the delimiter for every message sent to the socket input. This simplified the error handling when there are some malformed data send to our server.

BTW, it can keep TCP connection alive now, otherwise, we may have tons of message data in the stream copy buffer as the result of io.TeeReader.