LOGFMON(8)

NAME
logfmon - log file monitoring daemon

SYNOPSIS
logfmon [-dsv] [-f conffile] [-c cachefile] [-p pidfile]

DESCRIPTION
The logfmon daemon monitors a set of syslog log files and matches each new entry against the rules defined in its configuration file. Each rule may be tested against entries from a single file, a set of files or from all files. Depending on the rule, a command may be executed or the entry may be ignored. All unmatched messages are batched together and mailed every 15 minutes, or whatever alternative time is specified in the configuration file.

Messages may also be collected into contexts and piped to a command after a final message is found or a number of messages is reached. See logfmon.conf(5) for more details of this.

The options are as follows:

-c cachefile
    Specify the cache file location. Default is /var/db/logfmon.cache.

    This overrides any location specified in the configuration file.

-d  Run in the foreground and log to stderr.

    This option also causes additional debugging messages to be generated. This option may be specified multiple times for increasing levels of verbosity.

-s  Monitor stdin. This causes logfmon to remain in the foreground and filter log messages passed on stdin.

-f conffile
    Specify the configuration file location. Default is /etc/logfmon.conf.

-p pidfile
    Specify the pid file location. Default is /var/run/logfmon.pid.

    This overrides any location specified in the configuration file.

-v  Display the logfmon version, and exit.

FILES
/etc/logfmon.conf
    default logfmon configuration file

SEE ALSO
syslog(3), logfmon.conf(5)

AUTHORS
Nicholas Marriott <nicm@users.sourceforge.net>