How to change the name of log files every day
Hi, We are using version 3 for freeradius When we try to use the following statement in radiusd.conf "log" section requests = ${logdir}/radiusd-%{%{Virtual-Server}:-DEFAULT}-%Y%m%d.log we get Cannot use deprecated configuration item "requests"
From radiusd -C
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? Geoffrey
On Dec 3, 2024, at 4:58 AM, Geoffrey Francis via Freeradius-Users <freeradius-users@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.
Will try it...thanks very much Geoffrey On Dec 3, 2024, at 4:58 AM, Geoffrey Francis via Freeradius-Users <freeradius-users@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. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Alan DeKok -
Geoffrey Francis