Hello All, I am using FreeRadius 3.0.8. To setup the log rollover, I did the following steps. 1. Copy the attached radius file into /etc/logrotate.d/radius 2. Attached radius file contains information about the log. I am expected logrotate will create a log file on daily basis, because global setting in radiusd file is daily. But log file is not created on daily basic. When I have executed radiusd forcefully using logrotate -v -f /etc/logrotate.d/radiusd command. It is created compressed file and create a new log for logging. Am I missing anything in configuration? --- Thanks, Sunil Kulkarni
On Jun 22, 2015, at 2:51 PM, Sunil Kulkarni -X (sunikulk - PERSISTENT SYSTEMS INC at Cisco) <sunikulk@cisco.com> wrote:
I am using FreeRadius 3.0.8. To setup the log rollover, I did the following steps.
The server comes with example log rotate scripts that should work. I'd suggest using those. We've put some changes into v3.0.9 which should help the standard use of log rotate. We expect to release 3.0.9 later this week. Alan DeKok.
On 22/06/2015 19:51, Sunil Kulkarni -X (sunikulk - PERSISTENT SYSTEMS INC at Cisco) wrote:
I am using FreeRadius 3.0.8. To setup the log rollover, I did the following steps.
Which flavour and version of Linux are you using?
1. Copy the attached radius file into /etc/logrotate.d/radius
2. Attached radius file contains information about the log. I am expected logrotate will create a log file on daily basis, because global setting in radiusd file is daily.
But log file is not created on daily basic.
Which log file? radius.log?
When I have executed radiusd forcefully using logrotate -v -f /etc/logrotate.d/radiusd command. It is created compressed file and create a new log for logging.
Am I missing anything in configuration?
Ignoring any log rotation efforts, does your radius.log file get written to /usr/local/var/log/radius/? That's where logrotate is looking to process it. HTH, Simon -- Simon Flood, Senior Systems Specialist, University Information Services, University of Cambridge
participants (3)
-
Alan DeKok -
Simon Flood -
Sunil Kulkarni -X (sunikulk - PERSISTENT SYSTEMS INC at Cisco)