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 December 18, 2024: Merge pull request #90 from axoflow/minor-fixes-241218 (68cd7df)