radius.log with timestamp in filename

Alan DeKok aland at deployingradius.com
Tue Aug 4 12:10:34 CEST 2009

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.

  Dynamically expanding the filename for *every* log message is an
enormous waste of time.  The filename changes only once a day, so it
should be renamed only once a day.

  Alan DeKok.

More information about the Freeradius-Users mailing list