You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/10/16 21:35:57 UTC

[Bug 54015] New: Combined (bytes received + bytes sent) logging directive

https://issues.apache.org/bugzilla/show_bug.cgi?id=54015

          Priority: P2
            Bug ID: 54015
          Assignee: bugs@httpd.apache.org
           Summary: Combined (bytes received + bytes sent) logging
                    directive
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: apache_bugzilla@mindcontrolled.nl
          Hardware: PC
            Status: NEW
           Version: 2.5-HEAD
         Component: mod_logio
           Product: Apache httpd-2

mod_logio currently adds two logging directives: %I for bytes received (in) and
%O for bytes sent (out). They are very handy in several situations. However,
many packages that help the user translate the access logs into statistics,
only provide for a single 'byte counter' when reading access_log, as by popular
and accepted log formats.

Before mod_logio was available this counter was usually used to count %b, which
doesn't include received bytes, and is inaccurate on partial downloads (it
implies '100 MB sent' when a 100 MB file download is cancelled after 5 MB for
example).

It seems that some distributions (at least Ubuntu) now include %O instead of %b
to accurately record true sent bytes, but this still completely leaves out
received bytes.

I would like to suggest adding a logging directive that has the cumulative
result of %I and %O so that:
- sent and received data can be measured with the currently available packages
for statistics;
- this data can be recorded with those tools, without adding extra columns/data
to the already available and well accepted log formats.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54015] Combined (bytes received + bytes sent) logging directive

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54015

Martijn T. <ap...@mindcontrolled.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |apache_bugzilla@mindcontrol
                   |                            |led.nl
           Hardware|PC                          |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54015] Combined (bytes received + bytes sent) logging directive

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54015

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54015] Combined (bytes received + bytes sent) logging directive

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54015

--- Comment #1 from Martijn T. <ap...@mindcontrolled.nl> ---
I forgot: wasn't sure what version I should put this on. I would certainly like
to see this in currently maintained versions of Apache.

Mostly because it is a more elegant way (perhaps also faster and less error
prone) of getting the sum of in+out than piping all our logs (with seperate %I
and %O) through a Perl script just to combine the two values.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54015] Combined (bytes received + bytes sent) logging directive

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54015

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Christophe JAILLET <ch...@wanadoo.fr> ---
This has been backported to 2.4.X branch in r1523269.

It will be part of 2.4.7

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54015] Combined (bytes received + bytes sent) logging directive

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54015

Martijn T. <ap...@mindcontrolled.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.5-HEAD                    |2.2.23

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54015] Combined (bytes received + bytes sent) logging directive

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54015

--- Comment #2 from Christophe JAILLET <ch...@wanadoo.fr> ---
A patch that adds a new %C (combined) format specifier has been pushed to
trunk.

See r1484910.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org