Merge tag 'release_3_0_15' into tr-integ
[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 #
15 #  The main server log
16 #
17 /var/log/freeradius/radius.log {
18         copytruncate
19 }
20
21 #
22 #  Session monitoring utilities
23 #
24 /var/log/freeradius/checkrad.log /var/log/freeradius/radwatch.log {
25         nocreate
26 }
27
28 #
29 #  SQL log files
30 #
31 /var/log/freeradius/sqllog.sql {
32         nocreate
33 }
34
35 # There are different detail-rotating strategies you can use.  One is
36 # to write to a single detail file per IP and use the rotate config
37 # below.  Another is to write to a daily detail file per IP with:
38 #     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
39 # (or similar) in radiusd.conf, without rotation.  If you go with the
40 # second technique, you will need another cron job that removes old
41 # detail files.  You do not need to comment out the below for method #2.
42 /var/log/freeradius/radacct/*/detail {
43         nocreate
44 }