-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrsyslog.conf
56 lines (41 loc) · 1.45 KB
/
rsyslog.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# /etc/rsyslog.conf Configuration file for rsyslog.
#
#################
#### MODULES ####
#################
module(load="imuxsock" # needs to be done just once
SysSock.FlowControl="off" # no blocking when queues fillup
SysSock.RateLimit.Interval="0" # turn off rate limiting
SysSock.Unlink="on") # unlink when done
# create and read log messages from /var/run/rsyslog/dev/log
input(type="imuxsock" Socket="/var/run/rsyslog/dev/log" CreatePath="on")
#$ModLoad imklog # provides kernel logging support
#$ModLoad immark # provides --MARK-- message capability
# provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
# provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514
###########################
#### GLOBAL DIRECTIVES ####
###########################
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
$ActionFileDefaultTemplate RSYSLOG_FileFormat
# Set the default permissions for all log files.
$FileOwner root
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
# Filter duplicated messages
$RepeatedMsgReduction off
# Turn off escaping control chars
$EscapeControlCharactersOnReceive on
# This decided the size of each line; beyond that the line is truncated
$MaxMessageSize 4k
# Where to place spool and state files
$WorkDirectory /var/spool/rsyslog
# Include all config files in /etc/rsyslog.d/
$IncludeConfig /etc/rsyslog.d/*.conf