View Single Post

  #2 (permalink)  
Old 08-09-2006
Kees Nuyt
 
Posts: n/a
Default Re: Compressing Apache Log Files

On 9 Aug 2006 05:11:01 -0700, "ITGuy53" <micron121@yahoo.com>
wrote:

>can and is it safe to compress apache log files? specifically
>ssl.logon.log and some other log file that i can not seem to think of
>right now. that log file that i can't seem to think of right now is
>basically when someone logs into "the website", it logs it in. both
>log files were at 2.5 Gigs where it maxed out one of my drives. could
>or does anyone know if i can compress that one file?
>
>thanks in advance...


I assume you are referring to
<apacheinstalldir>/logs/access.log
and
<apacheinstalldir>/logs/error.log

Best think to do is switch to another set of logfiles (the
Apache manual refers to a utility for exactly that, though I
must confess I never tried that on Windows).
Then, you can compress the previous logfile (or throw it away
after analysis).

Compressing of active logfiles doesn't seem like a good idea:
- compressing steals CPU time
- you would lose more logging info in case of power loss

The best thing to do is ask yourself if you really need that
much history.