go-syslog
go-syslog copied to clipboard
Syslog server library for go.
I created this myself, but it could be added to the library. For logs that do not conform to standards. ```go // --- Dummy format that just puts the whole...
Problem with certs: ``` panic: x509: certificate relies on legacy Common Name field, use SANs instead goroutine 36 [running]: gopkg.in/mcuadros/go-syslog%2ev2.(*ServerSuite).TestTLS.func1(0x0) /-S/vendor/gopkg.in/mcuadros/go-syslog.v2/servertls_test.go:69 +0x148 created by gopkg.in/mcuadros/go-syslog%2ev2.(*ServerSuite).TestTLS /-S/vendor/gopkg.in/mcuadros/go-syslog.v2/servertls_test.go:65 +0x13c ``` Problem with...
Buggy clients might never respond during the TLS handshake phase. This change adds a config setting to set a read timeout before calling handshake. I think the handshake involves multiple...
When using a plain TCP listener, goScanConnection creates some data structures and moves on to scan which is wrapped in a goroutine. When using a TLS listener, goScanConnection does not...
Added Server.SetErrChannel which will be used to send errors fixes #78
There is no way to capture errors that occur during TLS handshakes.
How to improve processing performance? For example, 100000 logs per second
## Unit test fixes The unit tests, at least under go 1.16, were failing: > panic: x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common...

Even for a tiny bit higher than nothing troughput using UDP, packets will get lost with default setting. Setting read buffer to a higher number can fix this. Tested with...