| 1 |
# Rotate client logs |
| 2 |
/var/log/glusterfs/*.log { |
| 3 |
sharedscripts |
| 4 |
weekly |
| 5 |
maxsize 10M |
| 6 |
minsize 100k |
| 7 |
|
| 8 |
# 6 months of logs are good enough |
| 9 |
rotate 26 |
| 10 |
|
| 11 |
missingok |
| 12 |
compress |
| 13 |
delaycompress |
| 14 |
notifempty |
| 15 |
postrotate |
| 16 |
/usr/bin/killall -HUP glusterfs > /dev/null 2>&1 || true |
| 17 |
/usr/bin/killall -HUP glusterd > /dev/null 2>&1 || true |
| 18 |
endscript |
| 19 |
} |
| 20 |
|
| 21 |
# Rotate server logs |
| 22 |
/var/log/glusterfs/bricks/*.log { |
| 23 |
sharedscripts |
| 24 |
weekly |
| 25 |
maxsize 10M |
| 26 |
minsize 100k |
| 27 |
|
| 28 |
# 6 months of logs are good enough |
| 29 |
rotate 26 |
| 30 |
|
| 31 |
missingok |
| 32 |
compress |
| 33 |
delaycompress |
| 34 |
notifempty |
| 35 |
postrotate |
| 36 |
/usr/bin/killall -HUP glusterfsd > /dev/null 2>&1 || true |
| 37 |
endscript |
| 38 |
} |
| 39 |
|
| 40 |
/var/log/glusterfs/samples/*.samp { |
| 41 |
daily |
| 42 |
rotate 3 |
| 43 |
sharedscripts |
| 44 |
missingok |
| 45 |
compress |
| 46 |
delaycompress |
| 47 |
} |
| 48 |
|
| 49 |
# Rotate snapd log |
| 50 |
/var/log/glusterfs/snaps/*/*.log { |
| 51 |
sharedscripts |
| 52 |
weekly |
| 53 |
maxsize 10M |
| 54 |
minsize 100k |
| 55 |
|
| 56 |
# 6 months of logs are good enough |
| 57 |
rotate 26 |
| 58 |
|
| 59 |
missingok |
| 60 |
compress |
| 61 |
delaycompress |
| 62 |
notifempty |
| 63 |
postrotate |
| 64 |
/usr/bin/killall -HUP `pgrep -f "glusterfs.*snapd"` > /dev/null 2>&1 || true |
| 65 |
endscript |
| 66 |
} |