Section: Maintenance Commands (8)Updated: 30 January 2001Local indexUp
log2mail runs as a daemon matching patterns in files and sending mail if a match occurs
is configured by a config file (see below). It matches each line added to a
given file against patterns for this file and sends mail to a named recepient,
if the pattern matches. Because of limitations to the select()-system call,
log2mail scans files every second. Log2mail waits a number of seconds before
it'll send a message, and if this specific pattern is matched again, it waits
another number of seconds, specified like the first one in the config file.
log2mail runs as a daemon (if started without the -N option, see below).
In daemon mode, log2mail logs using the syslog DAEMON facility
(/var/log/daemon.log in Debian).
display a short help and exit
display version information and exit
do not fork into background, log to STDERR
write a log entry for every mail message sent
read directory recursive in config dir
instead of the default /etc/log2mail.conf. You may specify
a directory instead of a file: All files in the directory
will be read (without reasonable exceptions, see source).
See log2mail.conf(5) for a description of the format.
a message template file
To increase the amount of information printed by log2mail, compile with the DEBUG option
(see source code).