rfc5424-logging-handler
rfc5424-logging-handler copied to clipboard
An RFC5424-Compliant Syslog Handler for the Python Logging Framework
tzlocal 5 now uses logging, which means that rfc5424 gets a recursive import error with tzlocal 5.0.1 and later. This PR solves that, and also does not call tzlocal every...
#47 solves it
Is @jobec still reviewing and accepting PRs? THere are a few useful ones related to SSL/TLS that would be nice to have in the pypi package. Otherwise this repo should...
Hi, I would like to know how to set by default formatted structured data ? to be able to add in structured data other information that are already there ?...
The chages allow TLS ciphers to be specified as parameter for `Rfc5424SysLogHandler` which will be passed to the TLS connection's context.
Closes #40 Not setting `check_hostname` to `False` when `tls_verify` is `False` triggers the following exception. The PR contains changes to disable hostname checking when tls verification is disabled. ```python ......
[RFC5424](https://datatracker.ietf.org/doc/html/rfc5424#section-6) limits the structured data id(sd-id) to be max of 32 characters in length ``` ... STRUCTURED-DATA = NILVALUE / 1*SD-ELEMENT SD-ELEMENT = "[" SD-ID *(SP SD-PARAM) "]" SD-PARAM =...
Setting `tls_verify` to `False` triggers the following exception ```python ... File ".../lib/python3.8/site-packages/rfc5424logging/handler.py", line 229, in __init__ self._setup_transport() File ".../lib/python3.8/site-packages/rfc5424logging/handler.py", line 239, in _setup_transport self.transport = transport.TLSSocketTransport( File ".../lib/python3.8/site-packages/rfc5424logging/transport.py", line 86,...
Is [Rfc5424SysLogHandler.build_msg](https://github.com/jobec/rfc5424-logging-handler/blob/ae70baa3303f192556941e0d237dd9ab4e349dbc/rfc5424logging/handler.py#L308) meant to be thought of as a public method, or is it an implementation detail? We've got an http endpoint that accepts rfc5424-encoded messages. I've got everything working...