Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Syslog message without PRI header #52

Open
haimrubinstein opened this issue Jan 1, 2024 · 0 comments
Open

Syslog message without PRI header #52

haimrubinstein opened this issue Jan 1, 2024 · 0 comments

Comments

@haimrubinstein
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant