httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] log file compression... - mod_gzip
Date Thu, 19 Sep 2002 13:38:57 GMT
My understanding is that it just gzips it. But then, what else could it do?

Gzip is just a numerical process based on the Lempel-Ziv algorithm. Its efficiency depends
on the amount of entropy in the file to start with. A highly ordered file will compress much
better than a highly random file. For an access log file (which has lots of similar entries)
you should get the compressed file down to 40-50% of the original file. For a script log,
which is bit more random, it would not be so good, maybe 60-70%. About the best you could
hope for is about 25-30%...

>-----Original Message-----
>From: []
>Sent: Donnerstag, 19. September 2002 14:40
>Subject: [users@httpd] log file compression... - mod_gzip
>A quick question. I understand that the mod_gzip app can be 
>added to a CustomLog directive to more or less compress the 
>log file output. Does the routine do take advantadge of the 
>special charateristics of a log file regarding the log file 
>format, or does it simply treat the log file as a regular file 
>for compression?
>Also, If one wanted to examine the mod_gzip source, where 
>could you find it... Checking Google has given lots of sites, 
>but I haven't been able to get to the source... Maybe I'm tired...
>We need a way to compress (seriously compress!!) a lot of log 
>file data. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message