/etc/rsyslog.conf
#### RULES ####
# Log all kernel messages to the console.
内核产生的任何日志
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
定义了系统中除邮箱,身份验证,计划任务以外的其他日志
# Don’t log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
定义身份验证授权相关的日志文件路径
# The authpriv file has restricted access.
authpriv.* /var/log/secure
定义邮件日志文件路径,”-“代表异步传输
# Log all the mail messages in one place.
mail.* -/var/log/maillog
定义计划任务日志文件路径
# Log cron stuff
cron.* /var/log/cron
系统出现严重问题时,每个人都会收到提示
# Everybody gets emergency messages
.emerg :omusrmsg:
新闻相关服务日志文件
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
本地预留定制日志
# Save boot messages also to boot.log
local7.* /var/log/boot.log
##################################
学员评价