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