radius.log with timestamp in filename

John Dennis jdennis at redhat.com
Sat Aug 15 22:07:31 CEST 2009


On 08/04/2009 06:10 AM, Alan DeKok wrote:
> RadiusGuy wrote:
>> In good faith I have tried the same thing with the radius.log...
>>
>> file = ${logdir}/radius.log-%Y%m%d
>>
>> but it didn't work. Freeradius then creates a logfile with the explicit name
>> radius.log-%Y%m%d, but not with the timestamp of the actual day. Can anyone
>> help?
>
>    Write a cron job to rename the file.

Or better yet use logrotate. logrotate will rename your log files on a 
schedule you specify using a name you specify. Read the man page for 
more info.


-- 
John Dennis <jdennis at redhat.com>

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/



More information about the Freeradius-Users mailing list