domainaware / parsedmarc

A Python package and CLI for parsing aggregate and forensic DMARC reports
https://domainaware.github.io/parsedmarc/
Apache License 2.0
961 stars 209 forks source link

Use the syslog2 package to correctly send RFC3164 formatted syslog output #504

Closed lingfish closed 1 week ago

lingfish commented 3 months ago

The format that #263 sends isn't technically strict RFC3164; it's more of a raw output, but because it uses Python's SysLogHandler, the PRI is sent, but the HEADER is not.

Merging this in will probably break existing use of this.

Ideally, parsedmarc should also have GELF output, possibly rename the existing feature from #263 to some more like "Raw", and implement this PR.

seanthegeek commented 2 months ago

Yeah, so many people use this project for such a variety of different use cases that I'd rather not break existing functionality. Similar to why I want to be so careful about what I and others do to address #503.

Please update this PR to:

lingfish commented 2 months ago

Yeah, all fair points, I kinda mangled this one, and I don't think that syslog2 dep is a good one.. the author has weirdly put debug statements throughout it using print(). I shall work on it.

lingfish commented 1 week ago

I'm aborting this PR in favour of implementing GELF logging instead.