114
Chapter 11
mail.info -/var/log/mail.info
mail.warn -/var/log/mail.warn
mail.err /var/log/mail.err
Listing 11-2: Finding the logging rules in rsyslog.conf
Each line is a separate logging rule that says what messages are logged
and where they’re logged to. The basic format for these rules is as follows:
facility.
priority action
The
facility
keyword references the program, such as
mail
,
kernel
, or
lpr
, whose messages are being logged. The
priority
keyword determines
what kind of messages to log for that program. The
action
keyword, on
the far right, references the location where the log will be sent. Let’s look
at each section more closely, beginning with the
facility
keyword, which
refers to whatever software is generating the log, whether that’s the kernel,
the mail system, or the user.
The following is a list of valid codes that can be used in place of the
facility
keyword in our configuration file rules: