You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Arnab Ganguly <ag...@gmail.com> on 2008/04/22 16:08:44 UTC

[users@httpd] Printing Content-Length in Apache access_log

Hi All,
How do I get the content length in the access log.Is there any configuration
I need to do in the httpd.conf file?

Also what is the  "276" value in the line of the access log file
12.246.123.60 - - [04/Apr/2003:13:01:15 -0500] "GET /scripts/root.exe?/c+dir
HTTP/1.0" 404 276 ?
Thanks in advance.
Regards
-A

Re: [users@httpd] Printing Content-Length in Apache access_log

Posted by Rich Bowen <rb...@rcbowen.com>.
On Apr 22, 2008, at 10:08, Arnab Ganguly wrote:

> Hi All,
> How do I get the content length in the access log.Is there any  
> configuration I need to do in the httpd.conf file?
>
> Also what is the  "276" value in the line of the access log file  
> 12.246.123.60 - - [04/Apr/2003:13:01:15 -0500] "GET /scripts/ 
> root.exe?/c+dir HTTP/1.0" 404 276 ?
> Thanks in advance.

It's the number of bytes transferred - ie, the content length. In  
this case, it was the size of a 404 error document.

For full documentation of the Common Log Format, please see http:// 
httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats and http:// 
httpd.apache.org/docs/2.2/logs.html#accesslog

--
If you miss this moment
You miss your life




Re: [users@httpd] Printing Content-Length in Apache access_log

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, Apr 22, 2008 at 10:08 AM, Arnab Ganguly <ag...@gmail.com> wrote:
> Hi All,
> How do I get the content length in the access log.Is there any configuration
> I need to do in the httpd.conf file?
>
> Also what is the  "276" value in the line of the access log file
> 12.246.123.60 - - [04/Apr/2003:13:01:15 -0500] "GET /scripts/root.exe?/c+dir
> HTTP/1.0" 404 276 ?

Unsurprisingly, your questions are related. 276 is the content length
of the response. In this case, it is the length of the error document
that apache sent along with the 404 status code.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org