nerdexam
CompTIA

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.

Essential System Services

Question

Which of the following statements are true regarding the below syslog.conf configuration directive? (Select THREE) *.err;kern.notice;auth.notice /dev/console

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)
  • A
    14% (5)
  • B
    81% (29)
  • E
    6% (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.

ASeverity crit messages from all facilities will be directed to /dev/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.

BSeverity notice messages from the auth facility will be directed to /dev/consoleCorrect

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`.

CSeverity notice messages from the kern facility will be directed to /dev/consoleCorrect

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`.

DSeverity err messages from the mail facility will be directed /dev/consoleCorrect

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`.

ESeverity notice messages from all facilities will 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

#syslog configuration#log management#logging facilities#log severities

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice