RSyslogD and chroots
Motivation
Sometimes logs from apps in chroots don't log anywhere.
Solution for rsyslogd
In /etc/rsyslog.d/chroot_foobar.conf
add something like ...
$AddUnixListenSocket /mychroot/dev/log
... and restart rsyslogd.
Testing syslog
The package logger
allows to create syslog entries from command line:
logger -t "foobar_tag_chroot" -p "user.notice" "Testlog from chroot"
Â
Â