-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrsyslog.conf
More file actions
34 lines (27 loc) · 1 KB
/
rsyslog.conf
File metadata and controls
34 lines (27 loc) · 1 KB
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
# rsyslog.conf
#
# if you experience problems, check:
# http://www.rsyslog.com/troubleshoot
global(
workDirectory="/logs/_work"
)
module(load="imfile" mode="inotify") # File listener support
module(load="immark") # --MARK-- message support
module(load="imptcp") # TCP listener support
module(load="imrelp") # RELP listener support
module(load="imudp") # UDP listener support
module(load="omstdout")
template(name="filefmt" type="string" string="<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME%%$!metadata!filename%%msg:::sp-if-no-1st-sp%%msg%")
input(type="imfile"
file="/logs/*"
persiststateinterval="1"
tag="relayfile"
severity="info")
input(type="imptcp" port="514")
input(type="imudp" port="514")
input(type="imrelp" port="6514")
action(type="omstdout" template="filefmt")
# Include script-generated conf
$IncludeConfig /root/script.conf
# Include all .conf files in /etc/rsyslog.d
$IncludeConfig /etc/rsyslog.d/*.conf