LX0-104 · Question #270
Which of the following statements are true regarding the below syslog.conf configuration directive? (Select THREE) *.err;kern.notice;auth.notice /dev/console
The correct answer is B. Severity notice messages from the auth facility will be directed to /dev/console C. Severity notice messages from the kern facility will be directed to /dev/console D. Severity err messages from the mail facility will be directed /dev/console. The syslog.conf directive *.err;kern.notice;auth.notice /dev/console directs error messages from all facilities, and notice messages from the kernel and authentication facilities, to the console.
Question
Options
- ASeverity crit messages from all facilities will be directed to /dev/console
- BSeverity notice messages from the auth facility will be directed to /dev/console
- CSeverity notice messages from the kern facility will be directed to /dev/console
- DSeverity err messages from the mail facility will be directed /dev/console
- ESeverity notice messages from all facilities will be directed to /dev/console
How the community answered
(36 responses)- A14% (5)
- B81% (29)
- E6% (2)
Why each option
The `syslog.conf` directive `*.err;kern.notice;auth.notice /dev/console` directs error messages from all facilities, and notice messages from the kernel and authentication facilities, to the console.
The `*.err` rule directs messages of severity `error` and higher, including `critical`, from all facilities; however, stating only `crit` messages provides an incomplete description of the rule's full scope, which is broader than implied.
The `auth.notice` part of the directive explicitly specifies that messages of severity `notice` or higher from the `auth` facility should be directed to `/dev/console`.
The `kern.notice` part of the directive explicitly specifies that messages of severity `notice` or higher from the `kern` (kernel) facility should be directed to `/dev/console`.
The `*.err` part of the directive specifies that messages of severity `error` or higher from *all* facilities, including the `mail` facility, should be directed to `/dev/console`.
Only `notice` messages from the `auth` and `kern` facilities are explicitly directed by this rule, not `notice` messages from all facilities.
Concept tested: Syslog configuration directives (facility.level)
Source: https://man7.org/linux/man-pages/man5/syslog.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.