-
Notifications
You must be signed in to change notification settings - Fork 2
/
rsyslog.conf
59 lines (47 loc) · 1.67 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
56
57
58
59
# /etc/rsyslog.conf configuration file for rsyslog
#
# For more information install rsyslog-doc and see
# /usr/share/doc/rsyslog-doc/html/configuration/index.html
###########################
#### GLOBAL DIRECTIVES ####
###########################
global(
defaultNetstreamDriverCAFile="/SEKOIA-IO-intake.pem"
maxMessageSize="250k"
umask="0022"
workDirectory="/var/spool/rsyslog"
)
#################
#### MODULES ####
#################
module(load="impstats" log.file="/var/log/rsyslog-stats.log" ruleset="stats" format="json")
module(load="imuxsock") # Provides support for local system logging
module(load="imtcp") # Provides support for tcp connections
module(load="imudp") # Provides support for udp connections
# Use traditional timestamp format and set the default permissions for all log files.
module(
load="builtin:omfile"
Template="RSYSLOG_TraditionalFileFormat"
fileOwner="root"
fileGroup="adm"
fileCreateMode="0640"
dirCreateMode="0755"
)
# Define main queue
main_queue(
# file name template, also enables disk mode for the memory queue
queue.filename="sekoia_queue"
# allocate memory dynamically for the queue. Better for handling spikes
queue.type="LinkedList"
# maximum disk space used for the disk part of the queue
queue.maxDiskSpace="${DISK_SPACE}"
# how many messages (messages, not bytes!) to hold in memory
queue.size="${MEMORY_MESSAGES}"
# save the queue contents when stopping rsyslog
queue.saveOnShutdown="on"
)
#
# Include all config files in /etc/rsyslog.d/
#
include(file="/etc/rsyslog.d/*.conf")
include(file="/extended_conf/*.conf")