Re: radiusd log filename
OK, Alan, It's clear. Unfortunately, logrotate version on last RedHat/CentOS does not support YYYYMMDD 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 <aland@deployingradius.com> Subject: Re: radiusd log filename To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Message-ID: <4B9A3BC3.7020109@deployingradius.com> Content-Type: text/plain; charset=ISO-8859-1
Fred MAISON wrote:
I would like to change daemon log filename to have a YYYYMMDD 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.
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 YYYYMMDD 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 <jdennis@redhat.com> Looking to carve out IT costs? www.redhat.com/carveoutcosts/
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 YYYYMMDD 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 (mockbuild@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
participants (2)
-
Fred MAISON -
John Dennis