Hi,
thanks a for your help... but... I still have doubt on the "cleaness" of
this behaviur... (see below).

2006/1/18, Joshua Slive <[EMAIL PROTECTED]>:
> On 1/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I have problems with throughput calculation from log files in apache2.
> > Using "classic" awk scripts the output is messy due to the fact that
> > the lines in the log are not sorted with respect to time.
> >  In fact each line of the logs has the timestamp of when the request
> > has been made; this means that different response times urls have
> > different orders depending on the response time itself.
> >
> >  - Is this a known bug? (with correspondig fix...)
> >  - Is there any configuration workaround? (I cannot fix the source
> > code and recompile it)
>
> Apache logs are not sorted by time.  That is just a fact, not a bug.
Every bug is also a fact ( ;-) ). In my opinion writing not ordered lines
is not so nice, instead of logging arrival rate, apache2 tracks the completion
rates but with the arrival timestamp instead of the completion timestamp;
this is not so clean...
> The time is calculated when the request is received but the log line
> is written after the response is sent.
> You can easily sort them
> yourself after-the-fact if you need time-sorted logs.
Sorting in reasonable time is not so easy for a "real" http log file (unless
you have a cray supercomputing system... ;-) )
> Otherwise,
> there is no "solution" that doesn't involve recompiling.
>
> 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: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


_________________________________________________________________
TISCALI ADSL Web&Mail
Solo con Tiscali Adsl navighi e telefoni senza canone Telecom a partire da
14,95 Euro/mese. Attivala subito!
Per te 500 MB inclusi per navigare, inviare e ricevere messaggi e-mail, foto
ed mp3.
http://abbonati.tiscali.it/adsl/sa/2wam_tc/




---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to