LFCS · Question #458
A remote logging computer with a host name of foobar is being installed on the local network. What line in the system message configuration file will send all system messages to the remote computer?
The correct answer is B. *.* @foobar. To send all system messages to a remote logging computer named 'foobar', the syslog configuration uses . @foobar.
Question
Options
- A. foobar. *
- B. @foobar
- C*=foobar
- D
- .foobar
- E=foobar
How the community answered
(39 responses)- A5% (2)
- B90% (35)
- C3% (1)
- E3% (1)
Why each option
To send all system messages to a remote logging computer named 'foobar', the syslog configuration uses `*.* @foobar`.
`*.* foobar. *` is syntactically incorrect; the remote host destination typically uses the `@` prefix.
In `syslog` and `rsyslog` configuration files, `*.*` specifies all facilities and all priorities (meaning all messages). The `@` symbol followed by a hostname (e.g., `@foobar`) is the standard syntax for directing these messages to a remote syslog server.
`* =foobar` is not a valid `syslog` configuration syntax for forwarding messages to a remote host.
`* .foobar` is syntactically incorrect and does not follow the `syslog` remote forwarding convention.
`=foobar` is not a valid `syslog` configuration entry for forwarding messages.
Concept tested: `syslog`/`rsyslog` remote logging configuration
Source: https://www.man7.org/linux/man-pages/man5/syslog.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.