-
-
Notifications
You must be signed in to change notification settings - Fork 8
RFC5424 compliance #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Updates the syslog formatter to produce messages following the RFC 5424 standard. - Implements `RFC5424Formatter` for ISO 8601 timestamps with high precision. - Updates log format to include version, app-name, procid, and NILVALUEs. - Extracts process ID (`_PID`) from journal entries. - Ensures default values (`-`) for missing fields.
- Supports RFC3164 (default) and RFC5424 formats. - Updates configuration and translations. - Exports SYSLOG_FORMAT environment variable.
The previous regex r'\x1b[[\]\d+m' was invalid and caused a re.PatternError. It has been replaced with r'\x1b\[[0-9;]*m' which correctly matches standard ANSI escape sequences.
|
I wish i would have looked at existing pull requests first. Anyways, I tested this in my infra today and it works great. thanks @IngmarStein! (i tested RFC5424) |
|
Hi @IngmarStein |
|
@mib1185 sure, understood. The reason why I removed the unsupported platforms is because new current builder image no longer has these architectures anymore so the project didn't build with 2025.11.0 (https://github.com/home-assistant/builder/releases/tag/2025.11.0). The decisions to drop these architectures were already made by HA core team in February and April. |
|
yeah, I know, therefore I drafted #29 for now to keep the current builder version running as long as possible. |
|
Sure! Feel free to cherry-pick only the parts you like. |
I was trying to send HA logs to Grafana Alloy which has standard-compliant parsers for RFC3164 and RFC5424. Unfortunately, as noted in #27, version 0.4.1 of this add-on doesn't conform to either standard.
This PR is similar to #27 but adds a dropdown option for the syslog format with the previous format as the default and a new RFC5424-compliant option.
The PR also bumps a few dependencies and drops the architectures which were recently removed from the HA builder.