-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogrotate.conf
More file actions
46 lines (36 loc) · 958 Bytes
/
logrotate.conf
File metadata and controls
46 lines (36 loc) · 958 Bytes
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
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# Do not move files, just copy and then truncate to zero
copytruncate
# use date as a suffix of the rotated file
#dateext
# exclude alpine files
tabooext + .apk-new
# uncomment this if you want your log files compressed
compress
# One most recent log file will be left uncompressed
delaycompress
# apk packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
/var/log/remove_backups.log {
daily
# We are OK if log files are missing
missingok
# Keep last 10 log files
rotate 10
# Rotate log file if it is bigger than 100 Kb
size 100k
}
/var/log/cron.log {
daily
# We are OK if log files are missing
missingok
# Keep last 10 log files
rotate 10
# Rotate log file if it is bigger than 100 Kb
size 100k
}