4da5cdeff3e71ec6a7a590b3d87abaf2392842b4
[matthijs/servers/drsnuggles.git] / etc / logrotate.d / rsyslog-central
1 # This file describes the rotation of the centralized log files in /data, from
2 # all vservers.
3
4 /data/log/rsyslog/*/*/*.log
5 {
6         # Never throw away logfiles for now
7         rotate 999999
8         # Rotate daily
9         daily
10         # Compress rotated files
11         compress
12         # Use the rotation date as an extension
13         dateext
14         # Reload rsyslog after rotation, but only once for all scripts
15         sharedscripts
16         postrotate
17                 invoke-rc.d rsyslog reload > /dev/null
18         endscript
19         # Put the rotated logs in a separate dir
20         # Disabled, since logrotate insists these directories exist before
21         # rotation (and even before running scripts...)
22         # olddir archive
23 }
24
25 # This logfile is mostly used for quick lookups of recent events and for
26 # logcheck to parse. So we only keep one rotated version. Logcheck should be
27 # able to handle the rotation gracefully this way.
28 /data/log/rsyslog/all.log
29 {
30         rotate 1
31         daily
32         postrotate
33                 invoke-rc.d rsyslog reload > /dev/null
34         endscript
35 }