<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 2, 2011, at 12:52 PM, Jesse Callaway wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Tue, Aug 2, 2011 at 10:14 AM, Edward Capriolo <span dir="ltr"><<a href="mailto:edlinuxguru@gmail.com">edlinuxguru@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Aug 1, 2011 at 5:16 PM, Jesse Callaway <span dir="ltr"><<a href="mailto:bonsaime@gmail.com" target="_blank">bonsaime@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">

<br><br><div class="gmail_quote">On Mon, Aug 1, 2011 at 5:12 PM, Chris Snyder <span dir="ltr"><<a href="mailto:chsnyder@gmail.com" target="_blank">chsnyder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">



<div>On Mon, Aug 1, 2011 at 5:08 PM, Chris Snyder <<a href="mailto:chsnyder@gmail.com" target="_blank">chsnyder@gmail.com</a>> wrote:<br>
><br>
> As you've discovered, Apache doesn't log the request separate from the<br>
> response, so a log analyzer is no help here.<br>
<br>
</div>But wait -- this isn't strictly true. Apache can be made to log the<br>
time taken to serve the request, in microseconds. It just doesn't do<br>
so in the standard log format.<br>
<br>
<a href="http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats" target="_blank">http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats</a><br>
<br>
But getting awstats or another log analyzer to pay attention is another story.<br>
<div><div>_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@lists.nycbug.org" target="_blank">talk@lists.nycbug.org</a><br>
<a href="http://lists.nycbug.org/mailman/listinfo/talk" target="_blank">http://lists.nycbug.org/mailman/listinfo/talk</a><br>
</div></div></blockquote></div><br><br clear="all">correctamundo... <div><br></div><div>Gotta go with sec (simple event correlator) or collectd for the easiest way. Otherwise you're writing your own filter program for the apache logs... which i mean it's kinda cool that you can just add a pipe character to the logfile name, like in perl. But...</div>



<div><br></div><div><br><div><br>-- <br>-jesse<br>
</div></div>
</blockquote></div><br></div></div>To be clear I am using: <br>     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %T %D" with_time<br>        CustomLog     /opt/awstats-7.0/wwwroot/cgi-bin/gui-access-perf.log with_time<br>


<br>%D is the time in microseconds.<div class="im"><br><br><a href="http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats" target="_blank">http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats</a><br>
<br></div><div>I know I can script something and make my own report, but I really do not want to. If find when you write these things yourself you end up taking care of them indefinitely. I was hoping to find some tool that would break down %D by page. hits/average(time to serve),max(time_to_serve),95th percentile(time_to_serve). <br>

</div><div><br></div></blockquote></div></blockquote><br></div><div>Calamaris is a Squid log analysis tool, but it might support the kind of thing you're trying to do on Apache log files as well.</div><div><br></div><div>--Dave</div><br></body></html>