Skip to main content
added 29 characters in body
Source Link
Aaron Enberg
  • 131
  • 1
  • 1
  • 7

I have a configuration /etc/systemd/[email protected] which contains the setting ForwardToSyslog=yes and a systemd service fileunit configured with LogNamespace=my-namespace.

The documentation after this is not clear to me how to get the journal logs from my-namespace forwarded to syslog.

I understand there are two ways of forwarding journal logs to syslog, through a UNIX domain socket or .journal file. For this case, let's say I want to setup a socket at /run/systemd/journal.my-namespace/syslog for journald to write logs to and rsyslogd to listen and forward to syslog. I have gone through the documentation but I still don't understand how I would configure this.

I have a configuration /etc/systemd/[email protected] which contains the setting ForwardToSyslog=yes and a systemd service file with LogNamespace=my-namespace.

The documentation after this is not clear to me how to get the journal logs forwarded to syslog.

I understand there are two ways of forwarding journal logs to syslog, through a UNIX domain socket or .journal file. For this case, let's say I want to setup a socket at /run/systemd/journal.my-namespace/syslog for journald to write logs to and rsyslogd to listen and forward to syslog. I have gone through the documentation but I still don't understand how I would configure this.

I have a configuration /etc/systemd/[email protected] which contains the setting ForwardToSyslog=yes and a systemd service unit configured with LogNamespace=my-namespace.

The documentation after this is not clear to me how to get the journal logs from my-namespace forwarded to syslog.

I understand there are two ways of forwarding journal logs to syslog, through a UNIX domain socket or .journal file. For this case, let's say I want to setup a socket at /run/systemd/journal.my-namespace/syslog for journald to write logs to and rsyslogd to listen and forward to syslog. I have gone through the documentation but I still don't understand how I would configure this.

deleted 90 characters in body
Source Link
Aaron Enberg
  • 131
  • 1
  • 1
  • 7

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 surea configuration /etc/systemd/[email protected] exists and/etc/systemd/[email protected] which 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 11ForwardToSyslog=yes and a systemd service file with LogNamespace=my-namespace. I can see

The documentation after this is not clear to me how to get the journal logs with journalctl --namespace my-namespaceforwarded to syslog.

I noticed that for the defaultunderstand there are two ways of forwarding journal namespacelogs to syslog, through a UNIX domain socket exists at /run/systemd/journal/syslog andor /run/systemd/.journal file.my-namespace/syslog does not exist although I'm not sure if it is supposed to exist just wanted For this case, let's say I want to mention itsetup a socket at /run/systemd/journal.my-namespace/syslog for contextjournald to write logs to and rsyslogd to listen and forward to syslog. I have gone through the documentation but I still don't understand how I would configure this.

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.

I have a configuration /etc/systemd/[email protected] which contains the setting ForwardToSyslog=yes and a systemd service file with LogNamespace=my-namespace.

The documentation after this is not clear to me how to get the journal logs forwarded to syslog.

I understand there are two ways of forwarding journal logs to syslog, through a UNIX domain socket or .journal file. For this case, let's say I want to setup a socket at /run/systemd/journal.my-namespace/syslog for journald to write logs to and rsyslogd to listen and forward to syslog. I have gone through the documentation but I still don't understand how I would configure this.

Source Link
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.