44 lines
972 B
Plaintext
44 lines
972 B
Plaintext
#################
|
|
#### MODULES ####
|
|
#################
|
|
# Uncomment out the following lines and comment out everything else to get debugging for variables
|
|
# *.* /var/log/debugfmt;RSYSLOG_DebugFormat
|
|
|
|
module(load="imudp")
|
|
module(load="imtcp")
|
|
|
|
###########################
|
|
#### GLOBAL DIRECTIVES ####
|
|
###########################
|
|
|
|
#
|
|
# Use traditional timestamp format.
|
|
# To enable high precision timestamps, comment out the following line.
|
|
#
|
|
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
|
|
|
#
|
|
# Where to place spool and state files
|
|
#
|
|
$WorkDirectory /var/spool/rsyslog
|
|
|
|
#
|
|
# Include all config files in /etc/rsyslog.d/
|
|
#
|
|
$IncludeConfig /etc/rsyslog.d/*.conf
|
|
global(net.enableDNS="off")
|
|
|
|
###########################
|
|
# Input Parameters
|
|
###########################
|
|
|
|
input(type="imtcp" port="514")
|
|
input(type="imudp" port="514")
|
|
|
|
###########################
|
|
#### Central log stuff ####
|
|
###########################
|
|
|
|
$template RemoteLogs, "/var/log/syslog"
|
|
*.* ?RemoteLogs
|
|
& ~ |