102-500 · Question #9
Which of the following entries in /etc/syslog.conf writes all mail related events to the file /var/log/ and sends all critical events to the remote server logger.example.com? maillog
The correct answer is D. mail.*. Option D is correct because a valid /etc/syslog.conf entry requires the facility.severity selector format using a dot separator, and remote logging requires the @ prefix before the hostname - D uses mail. (all mail facility events at every severity) pointing to…
Question
Options
- Amail.*
- Bmail.*
- Cmail
- Dmail.*
- Email *
How the community answered
(64 responses)- A16% (10)
- B8% (5)
- C5% (3)
- D70% (45)
- E2% (1)
Explanation
Option D is correct because a valid /etc/syslog.conf entry requires the facility.severity selector format using a dot separator, and remote logging requires the @ prefix before the hostname - D uses mail.* (all mail facility events at every severity) pointing to /var/log/maillog, and *.crit pointing to @logger.example.com, satisfying both requirements.
Why the distractors fail:
- A & B appear to match the selector syntax but are missing either the
@prefix for remote delivery or have an incorrect destination path - without@, syslog treats the target as a local file, not a remote host. - C (
mailalone) omits the required severity component entirely - thefacility.severityformat is mandatory; a bare facility name is a syntax error. - E (
mail *) uses a space instead of a dot between facility and severity, which is invalid syslog.conf syntax - the dot is the required delimiter.
Memory tip: Think "dot for local, @ for remote" - mail.* is your selector (dot joins facility and severity), and @hostname routes to a remote syslog server. If you see a space between facility and severity, or a missing @ before a hostname destination, it's wrong.
Topics
Community Discussion
No community discussion yet for this question.