[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Logrotating single-issue files



Le lun 10/11/2003 à 16:36, Harry Putnam a écrit :
> Jos Vos <jos xos nl> writes:
> 
> > 	if [ -s $1 ]; then
> > 		gzip $1
> > 	else
> > 		mv $1 $1.gz
> > 	fi
> 
> Will something like this work?  The scripting below in /etc/logrotate
> would: Put all the lines from each trace.*, prefaced by filename in
> BIGTRACE.file.  Then it deletes the trace* files.

Unfortunately, you do not really want to concatenate the traces since
the app utils expect them to be broken into bits

(plus the nice thing about individual files is it's much easier to see
where an "event" starts and ends - linear logs is really bad for
parallel stuff)

Cheers,

-- 
Nicolas Mailhot

Attachment: signature.asc
Description: Ceci est une partie de message=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]