httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sameer Naik <>
Subject Re: [users@httpd] Logging question
Date Tue, 04 Dec 2007 08:12:41 GMT
> > Is it possible to log incoming connections that don't send any
> Don't think so... HTTP is an application that sits on top of TCP/IP.
> the session is established at the TCP/IP layer and the server is
> to pipe any incoming data to apache. But, at this point, apache is
> unaware of the connection so cannot log it or anything. Only when the
> client sends a request (is that what you mean by "data"?) does apache
> realise there is anybody there.

> The logging phase is more or less the last phase within the apache
> request lifecycle. Without "data", there is not request, thus no 
> lifecycle and thus no logging.

> I believe this has been discussed here recently within the following 
> thread:
> Don't think they have found a solution though. I gave up somewhere
along the line.
> regs,
> Christian

Theoretically, I think it should be possible for Apache to log an entry when accept() call
returns and before it issues first read() call on socket. Log entry then should be made after
read timeout. In such cases, there is nothing to be logged except remote IP and timestamp.

We monitored TCP connections by periodically running "netstat -pant" command and grepping
for httpd port and counting connections in each of "ESTABLISHED SYN_SENT SYN_RECV FIN_WAIT1"
etc. states.


Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.

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