This repository has been archived by the owner on Dec 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrsyslog
75 lines (72 loc) · 1.62 KB
/
rsyslog
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# to be processed by frep
/log/apache*/*-error.log
/log/apache*/*-access.log
/logs/apache*/*-error.log
/logs/apache*/*-access.log
/log/nginx/*-error.log
/log/nginx/*-access.log
/logs/nginx/*-error.log
/logs/nginx/*-access.log
/log/*-error.log
/log/*-access.log
/logs/*-error.log
/logs/*-access.log
/var/log/apache2/*.log
/var/log/apache/*.log
/var/log/haproxy/*.log
/var/log/nginx/*.log
/var/log/docker/longretention/*.log
{
rotate 365
nodateext
daily
size 200M
missingok
notifempty
compress
sharedscripts
postrotate
if [ -e /usr/lib/rsyslog/rsyslog-rotate ];then /usr/lib/rsyslog/rsyslog-rotate;else /usr/bin/killall -HUP rsyslogd;fi
endscript
}
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
/var/log/syslog
{
rotate 7
nodateext
daily
size 200M
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
if [ -e /usr/lib/rsyslog/rsyslog-rotate ];then /usr/lib/rsyslog/rsyslog-rotate;else /usr/bin/killall -HUP rsyslogd;fi
endscript
}
/var/log/docker/*.log
{
rotate 4
nodateext
daily
size 200M
missingok
notifempty
compress
nosharedscripts
postrotate
if [ -e /usr/lib/rsyslog/rsyslog-rotate ];then /usr/lib/rsyslog/rsyslog-rotate;else /usr/bin/killall -HUP rsyslogd;fi
endscript
}