LX0-104 · 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 configure syslog to send all system messages to a remote logging computer named 'foobar', the correct configuration syntax uses . for all facilities and severities, followed by @ and the hostname.
Question
Options
- A. foobar. *
- B. @foobar
- C*=foobar
- D
- .foobar
- E=foobar
How the community answered
(41 responses)- A2% (1)
- B78% (32)
- C5% (2)
- D12% (5)
- E2% (1)
Why each option
To configure syslog to send all system messages to a remote logging computer named 'foobar', the correct configuration syntax uses `*.*` for all facilities and severities, followed by `@` and the hostname.
The `foobar. *` syntax is incorrect; the '@' symbol is required to denote a remote host in syslog configurations.
The `*.*` specifies all logging facilities and all severities, meaning all system messages. The `@foobar` syntax in syslog configuration indicates that these messages should be sent to the remote host named `foobar` over UDP.
This syntax `*=` is incomplete and incorrect for specifying a remote syslog target.
This syntax `* .foobar` is incorrect and does not follow the standard syslog configuration for sending logs to a remote host.
This syntax `=foobar` is incomplete and incorrect for specifying a remote syslog target.
Concept tested: Syslog remote logging configuration
Source: https://www.redhat.com/sysadmin/system-logging-rsyslog
Topics
Community Discussion
No community discussion yet for this question.