LFCS · Question #282
Which of the following entries can an administrator add to syslog.conf file to have all syslog messages generated by the administrator system go file to have all syslog messages generated by the…
The correct answer is A. *.* /dev/tty12. To direct all syslog messages to virtual console 12, an administrator should add . /dev/tty12 to the syslog.conf file.
Question
Options
- A. /dev/tty12
- B/var/log/messages | /dev/tty12
- C| /dev/tty12
- Dsyslog tty12
- Email.* /dev/tty12
How the community answered
(34 responses)- A85% (29)
- B9% (3)
- C3% (1)
- E3% (1)
Why each option
To direct all syslog messages to virtual console 12, an administrator should add `*.* /dev/tty12` to the `syslog.conf` file.
In `syslog.conf`, `*.*` specifies all facilities and all priorities for messages, and `/dev/tty12` is the standard path to send output to virtual console 12.
`/var/log/messages` is a log file path, not a valid selector for message types in `syslog.conf`, and the pipe `|` is used for executing programs, not directly specifying a device.
This entry is incomplete as it lacks the necessary `facility.priority` selector to define which messages should be redirected.
The format `syslog tty12` does not conform to the required `facility.priority destination` syntax of the `syslog.conf` file.
`mail.*` would only direct messages originating from the mail facility, failing to meet the requirement of sending *all* syslog messages to the console.
Concept tested: syslog.conf message routing syntax
Source: https://man7.org/linux/man-pages/man5/syslog.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.