linux rsyslog配置文件详解

1.rsyslog配置文件简介

linux rsyslog配置文件/etc/rsyslog.conf分为三部分:MODULES、GLOBAL DIRECTIVES、RULES

ryslog模块说明
模块 说明
MODULES 指定接收日志的协议和端口。若要配置日志服务器,则需要将相应的配置项注释去掉。
GLOBAL DIRECTIVES 主要用来配置日志模版。指定你希望在日志文件中保存的日志格式。
RULES 指定日志的设施以及等级等信息

2.rsyslog配置文件详解

默认/etc/rsyslog.conf文件

# rsyslog configuration file

# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html

#### MODULES ####

# The imjournal module bellow is now used as a message source instead of imu

你可能感兴趣的:(linux,rsyslog,linux,服务器,运维,rsyslog)