I’ve been using LXC since few years ago. When I started to use it, I always configured the host’s rsyslog, that it created a /dev/log socket in /var/lib/lxc/NAME/rootfs.dev/, and reads it. Then I could catch all messages from all containers.
In the newest systems, there isn’t rootfs.dev - is there any way to make some similar solution like above?
The host and “guests” systems are Debian, with systemd.
I could done that configured systemd that reads the /dev/log inside of container, and sends to rsyslog through tcp… but not all messages arrived, eg. when I restart a service (eg. ssh), it doesn’t showed in host log.
Do you have any idea? How do you logging?