[CONTRIB] halog: report per-url counts, errors and times
authorWilly Tarreau <w@1wt.eu>
Thu, 28 Oct 2010 18:33:46 +0000 (20:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Oct 2010 17:04:37 +0000 (19:04 +0200)
commitabe45b6bb33606c5fde7b671a371d6b253d9900d
tree66cd1956e31efa47c0f18a9d21d1232a1972710e
parentb55fcf2ee8d5bc4c12f4b0c34e8cb5c2ffbe5946
[CONTRIB] halog: report per-url counts, errors and times

Using -u{,c,e,t,a,to,ao} it is possible to get per-URL statistics, sorted by
URL, request count, error count, total time, avg time, total time on OK requests,
avg time on OK requests.

Since it has to parse URLs and store a number of fields, it's quite slower
than other methods, but still correct for production usage (typically 800000
lines or 270 MB per second on a 2 GHz system).

Results are sorted in reverse order so that it's easy to catch them by piping
the output to the "head" command.
(cherry picked from commit 15ce7f56d15f839ce824279b84ffe14c58e41fda)
contrib/halog/Makefile
contrib/halog/halog.c