apache: how to write all traffic content to log file?

apache: how to write all traffic content to log file?

Post by thorst.. » Sat, 18 Dec 1999 04:00:00



Hi,
does anyone know how Apache can be configured
so that every HTTP request + answer is recorded into a trace file
- not only the events (like in access_log), but the whole
content, including HTTP headers + data ?

is there a debug option or something else?

Thanks,
Thorsten

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

apache: how to write all traffic content to log file?

Post by Randal L. Schwar » Sat, 18 Dec 1999 04:00:00


thorsten9> does anyone know how Apache can be configured
thorsten9> so that every HTTP request + answer is recorded into a trace file
thorsten9> - not only the events (like in access_log), but the whole
thorsten9> content, including HTTP headers + data ?

Apache can't be configured like that out of the box (that I know of
:).  You could write a mod_perl PerlLogHandler or a custom
mod_whatever to grab all the incoming and outgoing headers, but not
the response content, because that's lost forever down the pipe.
(Although I understand Apache 2.0 will allow disciplines to be pushed
onto "stdout" by other modules... which will be cool.)

Another way you might try if you don't need high performance, but are simply
debugging, is to set up my "proxy server" at

        http://www.stonehenge.com/merlyn/WebTechniques/col11.html

and then uncommenting all the debugging options in the last few lines
of the program, which will give you a detailed dump of all headers and
full responses (including content).

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

 
 
 

apache: how to write all traffic content to log file?

Post by ASTY Patric » Sat, 18 Dec 1999 04:00:00


You can take a look at my module mod_eaccess (Extended Access Control):

        http://www.micronet.fr/~pasty/eaccess/

Logs, in logs/eaccess_log, include URI, arguments and data (body).

Hope this help,

Patrick ASTY


Quote:

> Hi,
> does anyone know how Apache can be configured
> so that every HTTP request + answer is recorded into a trace file
> - not only the events (like in access_log), but the whole
> content, including HTTP headers + data ?

> is there a debug option or something else?

> Thanks,
> Thorsten

> Sent via Deja.com http://www.deja.com/
> Before you buy.

 
 
 

1. Apache Log File not getting written to

This is a peculiar problem. On the first of each month, routine log file
rotation for our Apache server is carried out. Upon starting up the
server however, it fails to write to its new log files. If the server is
then shutdown and started up, the server writes to the log files as
usual.

Any ideas? I'm a bit perplexed; this script worked perfectly for a long
time before this problem started to occur.

Thanks, please send email. I'll summarize and post.

Samir

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

2. "Stealth64 TrioV+ 2001 (S3) and >16M System Memory"

3. Apache writing "combined" to log file

4. Changing time in OpenBSD

5. Apache not writing to log files..

6. Konqueror shows webpage arial font as arial black

7. Content Negotiation and logging in apache

8. ethernet w/ SuSE 6.4

9. Configuring apache to log contents

10. Logging dynamically generated contents with apache

11. Q: Apache, config_log - on-the-fly modification of logged contents

12. Apache Logs : wrong entries in log files

13. Apache logging virtual hosts in one log file