CompTIA
XK0-004 · Question #158
A Linux administrator wants to configure log messages of critical or higher severity levels from the cron utility to be logged to the console. Which of the following will accomplish this objective?
The correct answer is B. Edit the /etc/rsyslog.conf file to include the line cron.emerg.* /dev/console. rsyslog to edit severity of log messages https://wiki.gentoo.org/wiki/Rsyslog#Severity
System Management
Question
A Linux administrator wants to configure log messages of critical or higher severity levels from the cron utility to be logged to the console. Which of the following will accomplish this objective?
Options
- AEdit the /etc/logrotate.d/cron file to include the line cron.emerg.* /dev/console
- BEdit the /etc/rsyslog.conf file to include the line cron.emerg.* /dev/console
- CEdit the /etc/logrotate.conf file to include the line cron.emerg.* /dev/console
- DEdit the /etc/rsyslog.d/conf file to include the line cron.emerg.* /dev/console
How the community answered
(27 responses)- A4% (1)
- B74% (20)
- C15% (4)
- D7% (2)
Explanation
rsyslog to edit severity of log messages https://wiki.gentoo.org/wiki/Rsyslog#Severity
Topics
#rsyslog#syslog configuration#log severity#cron logging
Community Discussion
No community discussion yet for this question.