Debian Codegraph @

debian/freeradius.logrotate

raw
1 # The main server log
2 /var/log/freeradius/radius.log {
3 # common options
4 daily
5 rotate 52
6 missingok
7 compress
8 delaycompress
9 notifempty
10 su freerad freerad
11
12 copytruncate
13 }
14
15 # (in order)
16 # Session monitoring utilities
17 # Session database modules
18 # SQL log files
19 /var/log/freeradius/checkrad.log /var/log/freeradius/radwatch.log
20 /var/log/freeradius/radutmp /var/log/freeradius/radwtmp
21 /var/log/freeradius/sqllog.sql
22 {
23 # common options
24 daily
25 rotate 52
26 missingok
27 compress
28 delaycompress
29 notifempty
30 su freerad freerad
31
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}/%{Packet-Src-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 # common options
44 daily
45 rotate 52
46 missingok
47 compress
48 delaycompress
49 notifempty
50 su freerad freerad
51
52 nocreate
53 }