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

Fix GNU syslog #63

Merged
merged 3 commits into from
Aug 15, 2019
Merged

Fix GNU syslog #63

merged 3 commits into from
Aug 15, 2019

Conversation

boyska
Copy link
Contributor

@boyska boyska commented May 1, 2019

The current implementation doesn't seem to work with GNU syslog()

I have especially tested its integration with systemd-journald, and I'm not getting messages from /run/systemd/journal/syslog correctly.

The error appears to be in the fact that GNU syslog() (and therefore, journald) omits the hostname from their messages.

My patch understands this case, and assumes it is a local message in that case.

I also added unit tests to ensure that both "normal" 3164 messages and GNU variant is working correctly.

@mcuadros mcuadros merged commit 42e2f02 into mcuadros:master Aug 15, 2019
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

Successfully merging this pull request may close these issues.

2 participants