nerdexam
CompTIA

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.

Essential System Services

Question

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?

Options

  • A. foobar. *
  • B. @foobar
  • C*=foobar
  • D
    • .foobar
  • E=foobar

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    78% (32)
  • C
    5% (2)
  • D
    12% (5)
  • E
    2% (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.

A*.* foobar. *

The `foobar. *` syntax is incorrect; the '@' symbol is required to denote a remote host in syslog configurations.

B*.* @foobarCorrect

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.

C*=foobar

This syntax `*=` is incomplete and incorrect for specifying a remote syslog target.

D* .foobar

This syntax `* .foobar` is incorrect and does not follow the standard syslog configuration for sending logs to a remote host.

E=foobar

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

#syslog#rsyslog#remote logging#log management

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice