blob: 098236a8f5ac4670725ea151cc402eed9fd03f64 [file] [log] [blame]
Thang Q. Nguyen09ea4852020-12-30 08:07:10 +00001# /etc/logrotate.d/rsyslog - Ported from Debian
2
3# Keep up to four 64k files for ipmi_sel (256k total)
4/var/log/ipmi_sel
5{
6 rotate 3
7 size 64k
8 missingok
9 postrotate
10 systemctl reload rsyslog 2> /dev/null || true
11 endscript
12}
13# Keep up to four 64k files for redfish (256k total)
14/var/log/redfish
15{
16 rotate 3
17 size 64k
18 missingok
19 postrotate
20 systemctl reload rsyslog 2> /dev/null || true
21 endscript
22}
Chau Ly74946012023-01-13 03:41:22 +000023# Keep up to 2 256k files for cpu console logs
24/var/log/obmc-console-cpu.log
25{
26 copytruncate
27 rotate 1
28 size 256k
29 missingok
30 postrotate
31 systemctl reload rsyslog 2> /dev/null || true
32 endscript
33}
34# Keep up to 2 64k files for atf console logs
35/var/log/obmc-console-atf.log
36{
37 copytruncate
38 rotate 1
39 size 64k
40 missingok
41 postrotate
42 systemctl reload rsyslog 2> /dev/null || true
43 endscript
44}
45# Keep up to 2 64k files for secpro and mpro console logs
46/var/log/obmc-console-*pro*.log
47{
48 copytruncate
49 rotate 1
50 size 64k
51 missingok
52 postrotate
53 systemctl reload rsyslog 2> /dev/null || true
54 endscript
55}
56
57# Keep up to 2 64k files for Mt.Jade's scp console logs
58/var/log/obmc-console-scp*.log
59{
60 copytruncate
61 rotate 1
62 size 64k
63 missingok
64 postrotate
65 systemctl reload rsyslog 2> /dev/null || true
66 endscript
67}