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

Add per unit LogForwardToXXX= settings #32550

Open
DaanDeMeyer opened this issue Apr 29, 2024 · 3 comments
Open

Add per unit LogForwardToXXX= settings #32550

DaanDeMeyer opened this issue Apr 29, 2024 · 3 comments
Labels
journal RFE 🎁 Request for Enhancement, i.e. a feature request

Comments

@DaanDeMeyer
Copy link
Contributor

DaanDeMeyer commented Apr 29, 2024

StandardOutput=journal+console will only forward messages from stdout to the console. We need a setting that will forward any kind of log from the service (stdout, journal, syslog) to the console (or kmsg, or syslog).

@DaanDeMeyer DaanDeMeyer added bug 🐛 Programming errors, that need preferential fixing journal labels Apr 29, 2024
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Apr 29, 2024
…ages

When StandardOutput=journal+console, let's make sure that any messages
received via the native journal socket and syslog are forwarded to the
console as well (or kmsg or syslog).

Fixes systemd#32550
DaanDeMeyer added a commit to DaanDeMeyer/systemd that referenced this issue Apr 29, 2024
…ages

When StandardOutput=journal+console, let's make sure that any messages
received via the native journal socket and syslog are forwarded to the
console as well (or kmsg or syslog).

Fixes systemd#32550
@YHNdnzj
Copy link
Member

YHNdnzj commented Apr 29, 2024

Hmm, why is this even considered a problem? The semantics of StandardOutput= is about stdout and stdout only. If you want to forward native messages to console, make the application turn that on in header?

@DaanDeMeyer
Copy link
Contributor Author

@YHNdnzj I fail to see how today I can tell journald that native journal messages from only a specific application should go to the console?

@DaanDeMeyer DaanDeMeyer changed the title StandardOutput=journal+console does not forward native journal messages to the console Add LogForwardToXXX= settings Apr 29, 2024
@DaanDeMeyer DaanDeMeyer added RFE 🎁 Request for Enhancement, i.e. a feature request and removed bug 🐛 Programming errors, that need preferential fixing labels Apr 29, 2024
@DaanDeMeyer DaanDeMeyer changed the title Add LogForwardToXXX= settings Add per unit LogForwardToXXX= settings Apr 29, 2024
@DaanDeMeyer
Copy link
Contributor Author

Changed to RFE to add some new unit settings to do forwarding for all logs of a unit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
journal RFE 🎁 Request for Enhancement, i.e. a feature request
Development

Successfully merging a pull request may close this issue.

2 participants