Running an archlinux container on an archlinux host,both using rsyslog with the same configuration file:  $ cat /etc/rsyslog.conf # Minimal config$ModLoad imuxsock # provides support for local system logging$ModLoad imklog   # provides kernel logging support$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat$FileOwner root$FileGroup root$FileCreateMode 0640$DirCreateMode 0755$Umask 0022$WorkDirectory /var/spool/rsyslog$IncludeConfig /etc/rsyslog.d/*.confauth,authpriv.*         /var/log/auth.log*.*;auth,authpriv.none      -/var/log/syslog#cron.*             /var/log/cron.logdaemon.*            -/var/log/daemon.logkern.*              -/var/log/kern.loglpr.*               -/var/log/lpr.logmail.*              -/var/log/mail.loguser.*              -/var/log/user.logmail.info           -/var/log/mail.infomail.warn           -/var/log/mail.warnmail.err            /var/log/mail.errnews.crit           /var/log/news/news.critnews.err            /var/log/news/news.errnews.notice         -/var/log/news/news.notice*.=debug;\    auth,authpriv.none;\    news.none;mail.none -/var/log/debug*.=info;*.=notice;*.=warn;\    auth,authpriv.none;\    cron,daemon.none;\    mail,news.none      -/var/log/messages*.emerg             :omusrmsg:*When I send a message to syslog on the host:  $ echo hello|logger -p kern.info $ sudo tail -1  /var/log/syslogJun  3 13:14:14 mothership user: helloBut with the exact same command in the container, nothing is appended to /var/log/syslog (or any other log file).  Precisions:- rsyslog is the only syslogger installed on the host and in the container- all services seem to log properly through rsyslog in the container- configuration of the container:  $ sudo cat /var/lib/lxc/cont/config[sudo] password for user: # Template used to create this container: /usr/share/lxc/templates/lxc-archlinux# Parameters passed to the template:# For additional config options, please look at lxc.container.conf(5)lxc.rootfs = /var/lib/lxc/cont/rootfslxc.utsname = contlxc.arch = i686lxc.include = /usr/share/lxc/config/archlinux.common.conf# tun & ttyUSB0lxc.cgroup.devices.allow = c 10:200 rwmlxc.cgroup.devices.allow = c 188:0 rwmlxc.autodev = 1lxc.pts = 1024lxc.kmsg = 0lxc.hook.autodev=/var/lib/lxc/cont/autodev# networklxc.network.type = vethlxc.network.link = br0lxc.network.flags = uplxc.network.ipv4 = 10.8.10.11/24lxc.network.ipv4.gateway = 10.8.10.10lxc.network.name = eth0# shareslxc.mount.entry = /mnt/share mnt/share none bind 0 0lxc.mount.entry = /var/cache/pacman/pkg var/cache/pacman/pkg none bind 0 0
fail to log from my app through rsyslogd in a linux container
arch linux;syslog;lxc;rsyslog;container