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

Allow skipping Pri header.

Open haimrubinstein opened this issue 1 year ago • 5 comments

following this issue.

in the new standard (RFC 5424) it stated that 'Facility and Severity values are not normative but often used.' meaning that the pri header is not mandatory. as a result, multiple products are sending Syslog messages without the pri header. Also, RFC3164 in the pri header section talks about relay messages and implies that it might not be mandatory in other non-relaying options.

so I added a new option to allow skipping the pri header. this is highly important for our use case.

haimrubinstein avatar Jan 07 '24 17:01 haimrubinstein

@leodido @powersj @jdstrand I saw that you were the last to comment/confirm something on this repository. I would greatly appreciate it if one of you could spare a few minutes for this

haimrubinstein avatar Jan 07 '24 18:01 haimrubinstein

it doesn't seem related to my changes, as I didn't change the parser code. but I'll try to run it locally

haimrubinstein avatar Jan 18 '24 11:01 haimrubinstein

@powersj thank you very much for taking a look. the issue was that the parser test was using the machine test cases. it seems to be OK now.

image

haimrubinstein avatar Jan 18 '24 12:01 haimrubinstein

BTW, how do you build the project? running 'make build' doesn't seem to work for me. it's not running the ' ragel -I common -Z -G2 -e -o rfc3164/machine.go rfc3164/machine.go.rl' command and as a result, I don't see my changes reflecting in the machine.go file. only after running the command manually it seems to work.

haimrubinstein avatar Jan 18 '24 12:01 haimrubinstein

the issue was that the parser test was using the machine test cases. it seems to be OK now.

Thanks for looking into it!

BTW, how do you build the project? running 'make build' doesn't seem to work for me. it's not running...

heh, I basically ran make build and make tests when I took my first look at this.

powersj avatar Jan 22 '24 21:01 powersj

image

I don't have anymore write/maintain access here. So, I can't help/maintain it. It's unfortunate but it is what it is... Feel free to redirect this PR to https://github.com/leodido/go-syslog. I plan to keep evolving this project there, on my GitHub. Thank you

leodido avatar May 19 '24 09:05 leodido

I don't have anymore write/maintain access here. So, I can't help/maintain it. It's unfortunate but it is what it is...

Your last commit was from 3 years ago :) If this is something you are interested in picking back up again, then we can revisit that. However, happy to see you pick up your own fork as well.

powersj avatar May 20 '24 14:05 powersj