How do I log the full request in Apache?

How do I log the full request in Apache?

Post by Jonathan Badge » Wed, 04 Apr 2001 01:05:57



For debugging purposes, I would like to log the full text of requests
that my Apache server receives. However, I can't seem to figure out
how this can be done. The LogFormat directive does have a %r option,
but this is just the first line of the request -- not the whole thing.
Can anyone give me a suggestion?

Sincerely,

Jonathan Badger

 
 
 

How do I log the full request in Apache?

Post by Joshua Sliv » Wed, 04 Apr 2001 02:07:44



> For debugging purposes, I would like to log the full text of requests
> that my Apache server receives. However, I can't seem to figure out
> how this can be done. The LogFormat directive does have a %r option,
> but this is just the first line of the request -- not the whole thing.
> Can anyone give me a suggestion?

The best way to do this is simply to use a network sniffer.  No point
in messing with the web server.

--
Joshua Slive

http://slive.ca/

 
 
 

How do I log the full request in Apache?

Post by Paul Rubi » Wed, 04 Apr 2001 02:27:56



> For debugging purposes, I would like to log the full text of requests
> that my Apache server receives. However, I can't seem to figure out
> how this can be done. The LogFormat directive does have a %r option,
> but this is just the first line of the request -- not the whole thing.
> Can anyone give me a suggestion?

I don't know a standard way to dump that info into the logs.  I
usually either run the httpd under gdb, or else compile a server with
print statements in the request loop.  As Joshua says, you can also
use a network sniffer, but if you're debugging SSL connections then
sniffing is complicated.
 
 
 

1. Need HELP to Log User Log-ins form the internet

Hi,

I've setup a FreeBSD 4.1.1-STABLE box to connect a network to the internet
with natd and ipfw firewall.
I've also setup the FreeBSD box to let teleworkers log in with FTP and
telnet.

Now I would like to log FTP and telnet Log-in's from teleworkers who connect
to the machine from the internet.
I woul like to see the time and IP numer from which users Log-in.

I have looked at the /var/log/messages file but this only shows SU Login's.

All help is greatly appriciated!

Luke

2. linux installation problem: "busy" from hard disk controller

3. pppd dial ins and , "LCP: timeout sending Config-Requests"

4. Help! What is ioctl(TIOCSCTTY) error???

5. Apache logging client 0.0.0.0 or 255.255.255.255 for all requests

6. Driver for Orchid CDS-3110 CD-ROM?

7. apache 1.36: how to log complete requests?

8. Matrox Milenium II a nogo?

9. Apache: how to log POST requests?

10. log complete request header in apache 1.3?

11. Apache Server - Can I log where requests are coming from?

12. Apache logging request "-"

13. ignoring .gif and .jpeg requests in apache logs