Re: radiusd log filename
Fred MAISON wrote: I would like to change daemon log filename to have a MMDD suffix, in order to have an automatic daily log rotation, but this does not seems to be supported, as log_file does not seems to expand variables as this can be done for request logs or acct detail. It doesn't support log file rotation like that. I suggest using logrotate. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: radiusd log filename
OK, Alan, It's clear. Unfortunately, logrotate version on last RedHat/CentOS does not support MMDD dateext function I can find on Debian ... I will have to write a postrotate script to do it. Thanks a lot. Fred Date: Fri, 12 Mar 2010 14:04:03 +0100 From: Alan DeKok al...@deployingradius.com Subject: Re: radiusd log filename To: FreeRadius users mailing list freeradius-users@lists.freeradius.org Message-ID: 4b9a3bc3.7020...@deployingradius.com Content-Type: text/plain; charset=ISO-8859-1 Fred MAISON wrote: I would like to change daemon log filename to have a MMDD suffix, in order to have an automatic daily log rotation, but this does not seems to be supported, as log_file does not seems to expand variables as this can be done for request logs or acct detail. It doesn't support log file rotation like that. I suggest using logrotate. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: radiusd log filename
On 03/12/2010 09:12 AM, Fred MAISON wrote: OK, Alan, It's clear. Unfortunately, logrotate version on last RedHat/CentOS does not support MMDD dateext function I can find on Debian ... I will have to write a postrotate script to do it. dateext is supported on RHEL5 (at least in the 5.4 I just checked). -- John Dennis jden...@redhat.com Looking to carve out IT costs? www.redhat.com/carveoutcosts/ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: radiusd log filename
Le vendredi 12 mars 2010 à 10:30 -0500, John Dennis a écrit : On 03/12/2010 09:12 AM, Fred MAISON wrote: OK, Alan, It's clear. Unfortunately, logrotate version on last RedHat/CentOS does not support MMDD dateext function I can find on Debian ... I will have to write a postrotate script to do it. dateext is supported on RHEL5 (at least in the 5.4 I just checked). Strange ... Customer's server are freshly installed CentOS 5, with last updates along with your (great) Freeradius 2.1.8 RPM port ... dateext is not in the man ! Please see below, nodateext is present in the binary, but dateext is not ... cat /etc/redhat-release CentOS release 5.4 (Final) cat /proc/version Linux version 2.6.18-164.11.1.el5 (mockbu...@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 20 07:32:21 EST 2010 logrotate -vd logrotate 3.7.4 - Copyright (C) 1995-2001 Red Hat, Inc. This may be freely redistributed under the terms of the GNU Public License Usage: logrotate [-dfv?] [-d|--debug] [-f|--force] [-m|--mail command] [-s|--state statefile] [-v|--verbose] [-?|--help] [--usage] [OPTION...] configfile strings /usr/sbin/logrotate | grep date nodateext Best regards Fred MAISON - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html