Logrotating single-issue files

Nicolas Mailhot Nicolas.Mailhot at laPoste.net
Mon Nov 10 16:11:38 UTC 2003


Le lun 10/11/2003 à 16:36, Harry Putnam a écrit :
> Jos Vos <jos at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20031110/5390de44/attachment-0002.bin 


More information about the devel mailing list