Red_Hat
RH302 · Question #168
RH302 Question #168: Real Exam Question with Answer & Explanation
On each of the mail, web, and DNS servers: Edit the syslog configuration file (e.g., /etc/syslog.conf or /etc/rsyslog.conf) sudo vi /etc/syslog.conf Add lines to redirect logs to the central log server. Replace 'logserveraddress' with the actual IP or hostname of the central log
Question
Configure the mail, web, and DNS servers to redirect their respective logs to a central log server, which is already configured.
Explanation
On each of the mail, web, and DNS servers:
Edit the syslog configuration file (e.g., /etc/syslog.conf or /etc/rsyslog.conf)
sudo vi /etc/syslog.conf
Add lines to redirect logs to the central log server.
Replace 'logserveraddress' with the actual IP or hostname of the central log server.
The source provides an example for 'mail' facility:
mail.* @logserveraddress
For web and DNS services, similar entries would be added,
targeting their specific syslog facilities (e.g., local0, daemon, etc.)
Example (adjust facilities as per actual service configuration):
local0.* @logserveraddress # For a web server using local0 facility
daemon.* @logserveraddress # For a DNS server (like BIND) using daemon facility
Restart the syslog service to apply changes
sudo service syslog restart
Community Discussion
No community discussion yet for this question.