Child pages
  • RSyslogD and chroots
Skip to end of metadata
Go to start of metadata

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"

 

 

  • No labels