Set rsyslog conf for Buster
Some minor changes might not work with Stretch
This commit is contained in:
parent
8e7cea8c7b
commit
5f36a0e9b0
|
@ -0,0 +1,5 @@
|
|||
#
|
||||
# Include all config files in /etc/rsyslog.d/
|
||||
#
|
||||
$IncludeConfig /etc/rsyslog.d/*.conf
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# This file is managed remotely, all changes will be lost
|
||||
|
||||
#
|
||||
# Global options
|
||||
#
|
||||
global(
|
||||
defaultNetstreamDriver="ptcp"
|
||||
)
|
||||
|
||||
#
|
||||
# Use traditional timestamp format.
|
||||
# To enable high precision timestamps, comment out the following line.
|
||||
#
|
||||
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
|
@ -0,0 +1,22 @@
|
|||
# This file is managed remotely, all changes will be lost
|
||||
|
||||
#
|
||||
# Set default permissions for all log files
|
||||
#
|
||||
$FileOwner root
|
||||
$FileGroup adm
|
||||
$FileCreateMode 0640
|
||||
$DirCreateMode 0755
|
||||
$Umask 0022
|
||||
|
||||
|
||||
#
|
||||
# Where to place spool and state files
|
||||
#
|
||||
$WorkDirectory /var/spool/rsyslog
|
||||
|
||||
#
|
||||
# Log every message
|
||||
#
|
||||
$RepeatedMsgReduction off
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# This file is managed remotely, all changes will be lost
|
||||
|
||||
#
|
||||
# Log messages sent to local UNIX socket
|
||||
#
|
||||
# provides support for local system logging
|
||||
module(load="imuxsock")
|
||||
|
||||
#
|
||||
# Log kernel messages
|
||||
#
|
||||
# provides kernel logging support
|
||||
module(load="imklog" permitnonkernelfacility="on")
|
||||
|
||||
#
|
||||
# Log periodic -- MARK -- messages
|
||||
#
|
||||
# provides --MARK-- message capability
|
||||
#module(load="immark")
|
||||
#module(load="immark" markmessageperiod="3600")
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
# This file is managed remotely, all changes will be lost
|
||||
|
||||
#
|
||||
# Standard log files, split by facility
|
||||
#
|
||||
auth,authpriv.* /var/log/auth.log
|
||||
*.*;cron,auth,authpriv.none -/var/log/syslog
|
||||
cron.* -/var/log/cron.log
|
||||
daemon.* -/var/log/daemon.log
|
||||
kern.* -/var/log/kern.log
|
||||
lpr.* -/var/log/lpr.log
|
||||
mail.* -/var/log/mail.log
|
||||
user.* -/var/log/user.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" log files
|
||||
#
|
||||
*.=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 :omusrmsg:*
|
||||
|
Loading…
Reference in New Issue