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