Skip to main content
1 of 3
Aaron Enberg
  • 131
  • 1
  • 1
  • 7

How to setup syslog forwarding for systemd journal namespace

The logs from my application no longer get forwarded to syslog after creating a journal namespace and assigning my service to it.

I have made sure /etc/systemd/[email protected] exists and contains the setting ForwardToSyslog=yes. I actually just copied the default config at /etc/systemd/journal.conf which has forwarding enabled by default on Debian 11. I can see the logs with journalctl --namespace my-namespace

I noticed that for the default journal namespace a UNIX domain socket exists at /run/systemd/journal/syslog and /run/systemd/journal.my-namespace/syslog does not exist although I'm not sure if it is supposed to exist just wanted to mention it for context.

Aaron Enberg
  • 131
  • 1
  • 1
  • 7