go-syslog icon indicating copy to clipboard operation
go-syslog copied to clipboard

Syslog message without PRI header

Open haimrubinstein opened this issue 2 years ago • 0 comments

Hi,

I'm using the OTEL syslog receiver that's using go-syslog. While doing testing I noticed that the PRI header is mandatory. after some local debugging, I found this code

if (m.data)[(m.p)] == 60 {
			goto st2
		}

since multiple products sending their syslog message without the PRI header, this is blocking us. I added a new 'MachineOption' locally to support 'no PRI' messages and tested it.

I would be more than happy to open a PR and merge it.

thanks

haimrubinstein avatar Jan 01 '24 18:01 haimrubinstein