Merge remote-tracking branch 'remotes/origin/moonshot-fr-3.0.12-upgrade' into debian
[freeradius.git] / debian / freeradius.logrotate
1 # You can use this to rotate the /var/log/freeradius/* files, simply copy
2 # it to /etc/logrotate.d/radiusd
3
4 #
5 #    Global options for all logfiles
6 #
7 #daily
8 #rotate 52
9 #missingok
10 #compress
11 #delaycompress
12 #notifempty
13
14 /var/log/freeradius/*.log {
15         weekly
16         rotate 52
17         compress
18         delaycompress
19         notifempty
20         missingok
21         postrotate
22                 service freeradius reload > /dev/null
23         endscript
24
25 }
26
27 #
28 #  The main server log
29 #
30 #/var/log/freeradius/radius.log {
31 #       copytruncate
32 #}
33
34 #
35 #  Session monitoring utilities
36 #
37 #/var/log/freeradius/checkrad.log /var/log/freeradius/radwatch.log {
38 #       nocreate
39 #}
40
41 #
42 #  Session database modules
43 #
44 #/var/log/freeradius/radutmp /var/log/freeradius/radwtmp {
45 #       nocreate
46 #}
47
48 #
49 #  SQL log files
50 #
51 #/var/log/freeradius/sqllog.sql {
52 #       nocreate
53 #}
54
55 # There are different detail-rotating strategies you can use.  One is
56 # to write to a single detail file per IP and use the rotate config
57 # below.  Another is to write to a daily detail file per IP with:
58 #     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
59 # (or similar) in radiusd.conf, without rotation.  If you go with the
60 # second technique, you will need another cron job that removes old
61 # detail files.  You do not need to comment out the below for method #2.
62 #/var/log/freeradius/radacct/*/detail {
63 #       nocreate
64 #}