stop rotation of the session database files
[freeradius.git] / scripts / logrotate / freeradius
1 #
2 #  Sample logrotate file for FreeRADIUS
3 #
4 #  You can use this to rotate the /var/log/radius/* files, simply copy it to /etc/logrotate.d/radiusd
5 #
6
7 #
8 #    Global options for all files
9 #
10 daily
11 rotate 14
12 missingok
13 compress
14 delaycompress
15 notifempty
16
17 #
18 #  The main server log
19 #
20 /var/log/radius/radius.log {
21         copytruncate
22 }
23
24 #
25 #  Session monitoring utilities
26 #
27 /var/log/radius/checkrad.log /var/log/radius/radwatch.log {
28         nocreate
29 }
30
31 #
32 #  SQL log files
33 #
34 /var/log/radius/sqllog.sql {
35         nocreate
36 }
37
38 # There are different detail-rotating strategies you can use.  One is
39 # to write to a single detail file per IP and use the rotate config
40 # below.  Another is to write to a daily detail file per IP with:
41 #     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
42 # (or similar) in radiusd.conf, without rotation.  If you go with the
43 # second technique, you will need another cron job that removes old
44 # detail files.  You do not need to comment out the below for method #2.
45 /var/log/radius/radacct/*/detail {
46         nocreate
47 }