Skip to content
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

All syslogs gets the same level (Warning) #5

Open
gribber opened this issue Sep 5, 2024 · 4 comments
Open

All syslogs gets the same level (Warning) #5

gribber opened this issue Sep 5, 2024 · 4 comments

Comments

@gribber
Copy link

gribber commented Sep 5, 2024

Seems like every syslog message gets the "Warning" level

Using Log Center in my Synology NAS as server, no matter what I do, everything seems to get the same severity

image

Neither BSD or IEFT format works and by looking a earlier pull request, I can see there is a merge that should make it rfc3164 (BSD) compliant

Am I missing something out here?

@mib1185
Copy link
Owner

mib1185 commented Sep 5, 2024

This add-on reads the messages from the systemd journal service, which unfortunately not set a proper priority tag to its messages (the origin level get lost somewhere between the python logging within the containers, the docker daemon and the journal service in the HAOS)
Maybe a parsing for at least the homeassistant container could be implemented, but for all other addons (containers) the log format is not ensured

@gribber
Copy link
Author

gribber commented Sep 6, 2024

Ok I see,
what about a way to add custom (regex)parsing for matching containers, like:
homeassistant ->
addon_xyz ->

@mib1185
Copy link
Owner

mib1185 commented Sep 6, 2024

With #6 (version 0.2.0 of this addon) the correct syslog level will now be determined for ha core, supervisor and haos host messages. Further the default for un-determined messages is now set to info, instead of warning.

I'm still thinking about the suggestion of custom regex parsing possibilities 🤔

@gribber
Copy link
Author

gribber commented Sep 7, 2024

awesome, I'll give it a try, thanks for the quick response!

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

No branches or pull requests

2 participants