LFCS · Question #222
Which syslog configuration line will send out logged messages to a remote syslog server?
The correct answer is C. *.* @remotehost. The question identifies the correct syslog configuration syntax for forwarding all log messages to a remote server.
Question
Options
- A. host:remotehost
- B. remote remotehost
- C. @remotehost
- D. host=remotehost
How the community answered
(46 responses)- A4% (2)
- B2% (1)
- C91% (42)
- D2% (1)
Why each option
The question identifies the correct `syslog` configuration syntax for forwarding all log messages to a remote server.
The syntax `host:remotehost` is not a standard `syslog` configuration for sending messages to a remote server.
The keywords `remote remotehost` are not part of the standard `syslog` configuration syntax for forwarding messages.
In `syslog` configuration, the '@' symbol followed by a hostname or IP address specifies that log messages matching the selector (e.g., `*.*` for all messages) should be forwarded via UDP to the specified remote `syslog` server. This is the standard syntax for remote `syslog` forwarding.
The syntax `host=remotehost` is not a standard `syslog` configuration for sending messages to a remote server.
Concept tested: Syslog remote logging configuration
Source: https://linux.die.net/man/5/syslog.conf
Topics
Community Discussion
No community discussion yet for this question.