mbox: Convert local email messages to log messages
Using the mbox()
driver, AxoSyslog can read email messages from local mbox files, and convert them to multiline log messages.
This driver has only one required option, the filename of the mbox file. To use the mbox()
driver, the scl.conf
file must be included in your AxoSyslog configuration:
@include "scl.conf"
The mbox()
driver is actually a reusable configuration snippet configured to read log messages using the file()
driver. For details on using or writing such configuration snippets, see Reusing configuration blocks. You can find the source of the configuration snippet on GitHub.
Example: Using the mbox() driver
The following example reads the emails of the root user on the AxoSyslog host.
@include "scl.conf"
source root-mbox {
mbox("/var/spool/mail/root");
};
Last modified December 18, 2024: Merge pull request #90 from axoflow/minor-fixes-241218 (68cd7df)