nerdexam
Linux_Foundation

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.

Submitted by salim_om· Apr 18, 2026Service Configuration

Question

Which syslog configuration line will send out logged messages to a remote syslog server?

Options

  • A. host:remotehost
  • B. remote remotehost
  • C. @remotehost
  • D. host=remotehost

How the community answered

(46 responses)
  • A
    4% (2)
  • B
    2% (1)
  • C
    91% (42)
  • D
    2% (1)

Why each option

The question identifies the correct `syslog` configuration syntax for forwarding all log messages to a remote server.

A*.* host:remotehost

The syntax `host:remotehost` is not a standard `syslog` configuration for sending messages to a remote server.

B*.* remote remotehost

The keywords `remote remotehost` are not part of the standard `syslog` configuration syntax for forwarding messages.

C*.* @remotehostCorrect

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.

D*.* host=remotehost

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

#syslog#rsyslog#log forwarding#service configuration

Community Discussion

No community discussion yet for this question.

Full LFCS Practice