systemd-netlogd icon indicating copy to clipboard operation
systemd-netlogd copied to clipboard

Question: systemd-netlogd, LogNamespace

Open D-r-P-3-p-p-3-r opened this issue 3 years ago • 1 comments

Nobody seems to have an idea on stackexchange, so I'll try here:

I'm working on a system (embedded device) on which a specific systemd service is running in its own LogNamespace:

[Service] LogNamespace=foo This is done so this service can log into persistent storage whereas all the other logs are volatile.

Also, on the same system logs are forwarded via systemd-netlogd. This works well for all other services and such but does not work for the service in its own namespace.

The systemd-netlogd configuration (https://github.com/systemd/systemd-netlogd) doesn't offer any parameter regarding a LogNamespace. Thus, as far as I can see it's not possible to run a 2nd instance of systemd-netlogd responsible for the 2nd instance of systemd-journald which itself handles the special LogNamespace.

Is it possible to get systemd-netlogd to work with LogNamespace? If yes: How?

D-r-P-3-p-p-3-r avatar Nov 23 '22 07:11 D-r-P-3-p-p-3-r

Please test with Namespace=

ssahani avatar May 02 '24 11:05 ssahani