How to read compressed log files

Joost van Baal joostvb at logreport.org
Sat Jul 7 18:42:43 CEST 2001


Hello Thierry,

On Sat, Jul 07, 2001 at 05:58:59PM +0200, FAI - Thierry Montigneaux wrote:
> 
> I have just installed LogReport, to monitor our Postfix logfiles automatically
> via a cron job.

Good!

> The first daily report failed, most probably because the logfiles are
> automatically compressed when rotated and logrepor is not told to first
> uncompress them.

Did you install the Debian package?  Or are you using lire-20010629.1.tar.gz?


> The logfile file to read is /var/log/maillo.0.gz
> 
> If it is possible that logreport uncompresses the file to read it, how do I tell
> it to do so ?
> 
> I assume the config option to change is in
> /usr/local/etc/lire/email/daily.postfix.1.local . Is it the "filter" line which
> needs to have the correct argument ? If yes, could anybody let me have the
> necessary data to add ?

You're right, that's the file.  The filter should be

filter="gzip -dc"


You can read about it in the lr_cron(1) manpage.


Thanks for your interest,

Bye,

Joost



-- 
Joost van Baal              . .           http://www.logreport.org/
                           .   .
/^LogReport$/               . .               joostvb at logreport.org


-- 
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
questions-request at logreport.org



More information about the Questions mailing list