eb87cf
# You can use this to rotate the /var/log/radius/* files, simply copy
eb87cf
# it to /etc/logrotate.d/radiusd
eb87cf
eb87cf
# There are different detail-rotating strategies you can use.  One is
eb87cf
# to write to a single detail file per IP and use the rotate config
eb87cf
# below.  Another is to write to a daily detail file per IP with:
eb87cf
#     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
eb87cf
# (or similar) in radiusd.conf, without rotation.  If you go with the
eb87cf
# second technique, you will need another cron job that removes old
eb87cf
# detail files.  You do not need to comment out the below for method #2.
eb87cf
/var/log/radius/radacct/*/detail {
eb87cf
	monthly
eb87cf
	rotate 4
eb87cf
	nocreate
eb87cf
	missingok
eb87cf
	compress
eb87cf
}
eb87cf
eb87cf
/var/log/radius/checkrad.log {
eb87cf
	monthly
eb87cf
	rotate 4
eb87cf
	create
eb87cf
	missingok
eb87cf
	compress
eb87cf
}
eb87cf
eb87cf
/var/log/radius/radius.log {
eb87cf
	monthly
eb87cf
	rotate 4
eb87cf
	create
eb87cf
	missingok
eb87cf
	compress
eb87cf
}
eb87cf
eb87cf
/var/log/radius/radutmp {
eb87cf
	monthly
eb87cf
	rotate 4
eb87cf
	create
eb87cf
	compress
eb87cf
	missingok
eb87cf
}
eb87cf
eb87cf
/var/log/radius/radwtmp {
eb87cf
	monthly
eb87cf
	rotate 4
eb87cf
	create
eb87cf
	compress
eb87cf
	missingok
eb87cf
}
eb87cf
/var/log/radius/sqltrace.sql {
eb87cf
        monthly
eb87cf
        rotate 4
eb87cf
        create
eb87cf
        compress
eb87cf
        missingok
eb87cf
}