LFCS practice question 5 of 35

Which of the following are syslog facilities? (Choose TWO correct answers.)

Full set: 260 questions
Answer options
A: local7 Correct answer
B: mail Correct answer
C: advanced
D: postmaster
E: remote
Correct Answer:
A. local7; B. mail
Explanation

Syslog facilities are identifiers used to categorize log messages by their source or subsystem. The syslog standard defines several facilities, including mail for messages from the mail system and a set of local0 through local7 facilities reserved for local system administrator use. These keywords are used in syslog configuration files (like /etc/rsyslog.conf) to direct messages from different sources to specific log files or destinations. advanced, postmaster, and remote are not standard syslog facility names.

Why Incorrect

C. advanced is not a recognized syslog facility keyword; it is too generic and not part of the standard.
D. postmaster is a common username or process name for a mail server, but it is not a syslog facility.
E. remote describes the origin of a log message (from a remote host), not a facility type for categorization.

References

- IETF RFC 5424, "The Syslog Protocol", Section 6.2.1, "FACILITY". This document provides a table of facility values, which includes "mail system" (value 2) and "local use 0" through "local use 7" (values 16-23).

- syslog(3) Linux programmer's manual page. Under the "Values for facility" section, it lists the standard facilities, including LOGMAIL and LOGLOCAL0 through LOGLOCAL7.

- rsyslog.conf(5) manual page. The "SELECTORS" section lists the valid facilities, which include mail and local0, ..., local7.

Scroll to Top