core updated.
This commit is contained in:
@@ -1,95 +1,61 @@
|
||||
#rsyslog v3 config file
|
||||
# /etc/rsyslog.conf
|
||||
#
|
||||
# This configuration is based on RainerScript, the new recommended syntax
|
||||
# for RSYSLOG. See http://www.rsyslog.com/doc/rainerscript.html for further
|
||||
# details.
|
||||
#
|
||||
# But if you don't want to learn something new at moment, don't worry: The
|
||||
# legacy syntax is still supported.
|
||||
#
|
||||
# You may want to use the new RSYSLOG configuration builder to create your
|
||||
# own more advanced configuration: http://www.rsyslog.com/rsyslog-configuration-builder/
|
||||
|
||||
# if you experience problems, check
|
||||
# http://www.rsyslog.com/troubleshoot for assistance
|
||||
|
||||
#### MODULES ####
|
||||
|
||||
$ModLoad imuxsock.so # provides support for local system logging (e.g. via logger command)
|
||||
$ModLoad imklog.so # provides kernel logging support (previously done by rklogd)
|
||||
$ModLoad immark.so # provides --MARK-- message capability
|
||||
|
||||
# Provides UDP syslog reception
|
||||
#$ModLoad imudp.so
|
||||
#$UDPServerRun 514
|
||||
|
||||
# Provides TCP syslog reception
|
||||
#$ModLoad imtcp.so
|
||||
#$InputTCPServerRun 514
|
||||
# Check config syntax on startup and abort if unclean (default: off)
|
||||
#$AbortOnUncleanConfig on
|
||||
|
||||
|
||||
#### GLOBAL DIRECTIVES ####
|
||||
###############
|
||||
### MODULES ###
|
||||
###############
|
||||
|
||||
# Use default timestamp format
|
||||
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
||||
# Read syslog messages from default Unix socket /dev/log (e.g. via logger command)
|
||||
module(load="imuxsock")
|
||||
|
||||
# File syncing capability is disabled by default. This feature is usually not required,
|
||||
# not useful and an extreme performance hit
|
||||
#$ActionFileEnableSync on
|
||||
# Read messages from the kernel log and submits them to the syslog engine
|
||||
module(load="imklog")
|
||||
|
||||
# Inject "--MARK--" messages every $Interval (seconds)
|
||||
#module(load="immark" Interval="600")
|
||||
|
||||
# Read syslog messages from UDP
|
||||
#module(load="imudp")
|
||||
#input(type="imudp" port="514")
|
||||
|
||||
# Read syslog messages from TCP
|
||||
#module(load="imtcp")
|
||||
#input(type="imtcp" port="514")
|
||||
|
||||
|
||||
## ### begin forwarding rule ###
|
||||
# The statement between the begin ... end define a SINGLE forwarding
|
||||
# rule. They belong together, do NOT split them. If you create multiple
|
||||
# forwarding rules, duplicate the whole block!
|
||||
# Remote Logging (we use TCP for reliable delivery)
|
||||
#
|
||||
# An on-disk queue is created for this action. If the remote host is
|
||||
# down, messages are spooled to disk and sent when it is up again.
|
||||
#$WorkDirectory /var/spppl/rsyslog # where to place spool files
|
||||
#$ActionQueueFileName fwdRule1 # unique name prefix for spool files
|
||||
#$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible)
|
||||
#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
|
||||
#$ActionQueueType LinkedList # run asynchronously
|
||||
#$ActionResumeRetryCount -1 # infinite retries if host is down
|
||||
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
|
||||
#*.* @@remote-host:514
|
||||
# ### end of the forwarding rule ###
|
||||
#########################
|
||||
### GLOBAL DIRECTIVES ###
|
||||
#########################
|
||||
|
||||
# Where to place spool and state files
|
||||
$WorkDirectory /var/spool/rsyslog
|
||||
|
||||
# Reduce repeating messages (default: off)
|
||||
#$RepeatedMsgReduction on
|
||||
|
||||
# Set defaults for every output file
|
||||
$Umask 0022
|
||||
|
||||
module(
|
||||
load="builtin:omfile"
|
||||
Template="RSYSLOG_TraditionalFileFormat"
|
||||
FileCreateMode="0644"
|
||||
DirCreateMode="0755"
|
||||
)
|
||||
|
||||
|
||||
#### RULES ####
|
||||
|
||||
auth,authpriv.* /var/log/auth.log
|
||||
*.*;auth,authpriv.none -/var/log/syslog
|
||||
|
||||
daemon.* -/var/log/daemon.log
|
||||
user.* -/var/log/user.log
|
||||
|
||||
# Log kernel stuff
|
||||
kern.* -/var/log/kern.log
|
||||
|
||||
# Log all the mail messages in one place.
|
||||
mail.* -/var/log/mail.log
|
||||
|
||||
# Log cron stuff
|
||||
cron.* /var/log/cron.log
|
||||
|
||||
#
|
||||
# Logging for the mail system. Split it up so that
|
||||
# it is easy to write scripts to parse these files.
|
||||
#
|
||||
mail.info -/var/log/mail.info
|
||||
mail.warn -/var/log/mail.warn
|
||||
mail.err /var/log/mail.err
|
||||
|
||||
# Logging for INN news system
|
||||
#
|
||||
news.crit /var/log/news/news.crit
|
||||
news.err /var/log/news/news.err
|
||||
news.notice -/var/log/news/news.notice
|
||||
|
||||
#
|
||||
# Some `catch-all' logfiles.
|
||||
#
|
||||
*.=debug;\
|
||||
auth,authpriv.none;\
|
||||
news.none;mail.none -/var/log/debug
|
||||
*.=info;*.=notice;*.=warn;\
|
||||
auth,authpriv.none;\
|
||||
cron,daemon.none;\
|
||||
mail,news.none -/var/log/messages
|
||||
|
||||
# Emergencies are sent to everybody logged in.
|
||||
#
|
||||
*.emerg *
|
||||
|
||||
# Include all conf files in /etc/rsyslog.d/
|
||||
$IncludeConfig /etc/rsyslog.d/*.conf
|
||||
|
||||
Reference in New Issue
Block a user