tsaikd / gogstash

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

Support for UDP packet mode #148

Closed helgeolav closed 3 years ago

helgeolav commented 3 years ago

As discussed in #146 i have made some changes to the code to handle UDP packets in a packet-oriented way instead of the stream-oriented way that the socket input handles UDP traffic. By setting a new configuration option "packetmode" to true each packet is processed separately and sent in for further processing. A field "host_ip" is also added that is the source IP/port for the packet.

helgeolav commented 3 years ago

I have updated my fork with all the changes that have been discussed up to now. I also added error handling for Codec in parse() so the behaviour is similar however this input is used.

tsaikd commented 3 years ago

Sorry for replying lately, please rearrange your commits before merging.

helgeolav commented 3 years ago

Closing, change was implemented at #152.