Apache | log files | file-type control

Apache | log files | file-type control

Post by Evan Coo » Mon, 16 Mar 1998 04:00:00



I'm running Apache 1.25 on a SPARC, and am wondering if there is a
simple way to cotrol what file-types get written out to the log files?
My reason for asking is that a typical page on our site has anywhere
form 10-20 .GIF or .JPG images (all very small, but numerous
nonetheless). As such, every page hit generates form 10-20 or so lines
in the log file, and I'm somewhat alarmed at the rate at which I'm
having to delete the log files. No problem with a cron script, but...

Is there any way to tell Apache to log only the .HTML files? Taht's
all I'm really interested in keeping track of anyway?

Thnks in advance...

Evan Cooch
Biological Sciences

 
 
 

Apache | log files | file-type control

Post by Andreas Ju » Mon, 16 Mar 1998 04:00:00



> I'm running Apache 1.25 on a SPARC, and am wondering if there is a
> simple way to cotrol what file-types get written out to the log files?
> My reason for asking is that a typical page on our site has anywhere
> form 10-20 .GIF or .JPG images (all very small, but numerous
> nonetheless). As such, every page hit generates form 10-20 or so lines
> in the log file, and I'm somewhat alarmed at the rate at which I'm
> having to delete the log files. No problem with a cron script, but...
> Is there any way to tell Apache to log only the .HTML files? Taht's
> all I'm really interested in keeping track of anyway?

Take a look at mod_log_config. This module allows you
to customize the format of the log-file. It allows also to
pipe the log file through a pipe. So you are able to use grep/perl
to filter the data you want or not.

Cheers,
Andreas

--
    ------------------------------------------------------------------------
   - Andreas Jung, Bruchwiesenanlage 2,D-66125 Saarbrcken, Germany       -


  - Member of the Python Software Activity (PSA), Contributor of the     -
   - Python Starship Project: http://starship.skyport.net                 -
    ------------------------------------------------------------------------

 
 
 

Apache | log files | file-type control

Post by Evan Coo » Tue, 17 Mar 1998 04:00:00




>Take a look at mod_log_config. This module allows you
>to customize the format of the log-file. It allows also to
>pipe the log file through a pipe. So you are able to use grep/perl
>to filter the data you want or not.

This handled it perfectly. Thanks very much!!!