Re: [systemd-devel] Syslog forwarding not working within journal namespace

2022-12-28 Thread Mantas Mikulėnas
Each namespace has its own journald service instance, in this case systemd-journald@my-namespace.service, and each such instance has been programmed to build the runtime directory name from the specified instance name. So the new journald process that handles "my-instance" uses /run/systemd/journal

Re: [systemd-devel] Syslog forwarding not working within journal namespace

2022-12-28 Thread Aaron Enberg
I found a minimal solution, which I don't quite understand. I ended up creating an rsyslog config at /etc/rsyslog.d/my-namespace.conf with the content: input(type="imuxsock" Socket="/run/systemd/journal.my-namespace/syslog") I guess with this rsyslog manages the socket, creating it if it doesn't

Re: [systemd-devel] Syslog forwarding not working within journal namespace

2022-12-28 Thread Mantas Mikulėnas
The easiest way might be to just symlink it from the existing socket with `ln -s ../journal/syslog /run/systemd/journal.my-namespace`... other than that, depends on the syslog daemon, e.g. an additional unix-stream() for syslog-ng or imuxsock for rsyslogd. (The socket for the main namespace is set

Re: [systemd-devel] Syslog forwarding not working within journal namespace

2022-12-28 Thread Aaron Enberg
/run/systemd/journal/syslog exists and I am sure that ForwardToSyslog=yes is set on the default namespace. I’d like to setup an additional socket at /run/systemd/journal.my-namespace/syslog to forward logs to syslog from my own namespace. Can you point me to the documentation for how I should do t

Re: [systemd-devel] Syslog forwarding not working within journal namespace

2022-12-27 Thread Mantas Mikulėnas
The forwarding itself is namespaced. ForwardToSyslog relies on the syslogd daemon setting up a receiving socket at /run/systemd/journal/syslog through which journald will send the messages – but for namespaced journald, the runtime directory is different (the point of it being namespaced) so the sy