102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 36


Which of the following entries in /etc/syslog.conf writes all mail related events to the file /var/log/maillog and sends all critical events to the remote server logger.example.com?

Show Answer
Correct Answer: D

For mail related events, 'mail.* /var/log/maillog' correctly writes these events to /var/log/maillog. 'mail.crit @logger.example.org' directs all critical mail events to the remote server logger.example.org. The option follows the correct syntax: 'facility.priority action'. Thus, this option ensures that all mail related events are logged to the file and all critical events are sent to the remote server.

Discussion

2 comments
Sign in to comment
Jodelo
Jul 5, 2021

For your interest, in newer distributions of Ubuntu the configuration file is: /etc/rsyslog.d/50-default.conf

iwkno6
Aug 26, 2021

thanks :)

klever
Jan 12, 2023

In Ubuntu 22.04 it is in /etc/rsyslog.conf