How to change the name of log files every day

Alan DeKok aland at deployingradius.com
Tue Dec 3 13:29:00 UTC 2024


On Dec 3, 2024, at 4:58 AM, Geoffrey Francis via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
> We want to have this old functionality of rotating the log file each day and keeping the log name in the following format, as follows
> 
>        radiusd-default-20241124.log.gz
>        radiusd-default-20241125.log.gz
>        radiusd-default-20241126.log.gz
> 
> what can we put in the radiusd.conf "log" section to do this?
> 
> Or how can we accomplish this please?

  Configure it via logrotate.  Every day move the current file to a new name, zip it, and HUP the server.

  Alan DeKok.



More information about the Freeradius-Users mailing list