Purpose:
To collect logs from a chroot using an AxoSyslog client running on the host, complete the following steps:

Steps:
-
Create a
/devdirectory within the chroot. The applications running in the chroot send their log messages here. -
Create a local source in the configuration file of the AxoSyslog application running outside the chroot. This source should point to the
/dev/logfile within the chroot (for example, to the/chroot/dev/logdirectory). -
Include the source in a log statement.
Note You need to set up timezone information within your chroot as well. This usually means creating a symlink to/etc/localtime.