Collecting logs from chroot
Purpose:
To collect logs from a chroot using an AxoSyslog client running on the host, complete the following steps:
Steps:
-
Create a
/dev
directory 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/log
file within the chroot (for example, to the/chroot/dev/log
directory). -
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
.
Last modified October 29, 2023: Moves figures to local directories because they weren't displayed in production (247ee16)