What command is used to modify the configuration of the syslog service for remote logging?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The correct answer is the configuration file "rsyslog.conf." This file is used to modify the settings and configuration for the syslog service, which handles logging messages in Linux systems. Within this file, you can specify parameters for remote logging, such as defining a remote logging server's address and the log facility levels that should be sent to that server.

When you want to enable or change the way syslog handles remote logging, you typically edit the "rsyslog.conf" file to determine what logs are forwarded, where they are sent, and how they are formatted. Modifications might include setting up rules for what logs to collect and using directives to specify the destination for those logs, which could include IP addresses or domain names of the remote logs storage.

In contrast, the other options do not serve this purpose. For instance, specific command-line tools or options like "logger" or hypothetical commands such as "syslog-config" or "syslog-remote" do not configure the syslog service directly; they may assist in logging but do not adjust the core configuration for syslog services, particularly pertaining to remote logging functionality.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy