» Linux » Examen sur Linux » Examen 202 : Networking Administration » Section 4 » Question 10/20
10.Which of the following lines in your /etc/syslog.conf file will cause all critical messages to be logged to the file /var/log/critmessages?

*.=crit /var/log/critmessages
*crit /var/log/critmessages
*=crit /var/log/critmessages
*.crit /var/log/critmessages

Explanation: The syntax is <message>.<type>. The <message> is the type of system message (mail, kernel etc.) and the <type> is the severity level. The = character is used to specify that level only (in this case, only messages with the severity level of ‘critical’). So here we have * (all) messages of the type ‘critical’ will be logged at /var/log/critmessages.

Reference: http://nodevice.com/sections/ManIndex/man1597.html

Incorrect Answers
B: There must be a dot (.) between the message type and the severity level.
C: There must be a dot (.) between the message type and the severity level.
D: This answer is nearly correct. However with the ‘=’ character, all messages with a level of critical and above will be logged.

« Question 9 Question 11 »