Merge commit 'e5cce0504bd0dbc227c839297e3d164ef800cbc8' into moonshot-fr-3.0.12-upgrade
[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 #  Session database modules
30 #
31 /var/log/freeradius/radutmp /var/log/freeradius/radwtmp {
32         nocreate
33 }
34
35 #
36 #  SQL log files
37 #
38 /var/log/freeradius/sqllog.sql {
39         nocreate
40 }
41
42 # There are different detail-rotating strategies you can use.  One is
43 # to write to a single detail file per IP and use the rotate config
44 # below.  Another is to write to a daily detail file per IP with:
45 #     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
46 # (or similar) in radiusd.conf, without rotation.  If you go with the
47 # second technique, you will need another cron job that removes old
48 # detail files.  You do not need to comment out the below for method #2.
49 /var/log/freeradius/radacct/*/detail {
50         nocreate
51 }