httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdem...@tiscali.it
Subject Re: [users@httpd] Unsorted timestamping in Apache2 log files
Date Wed, 18 Jan 2006 15:25:07 GMT
Hi Joshua,
I'm a little bit concerned about using piped logging for an high volume web
site... but this seems to be a practicable solution. Further investigation
required ... 

Thanks again
marcello

2006/1/18, Joshua Slive <joshua@slive.ca>:

    On 1/18/06, Joshua Slive <joshua@slive.ca> wrote:
    > On 1/18/06, mdemuro@tiscali.it <mdemuro@tiscali.it> 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.
    > 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.  Otherwise,
    > there is no "solution" that doesn't involve recompiling.

    Actually, another alternative would be to use a piped-logger, and have
    this program write out the current time, overwriting anything written
    by apache.

    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




_________________________________________________________________
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message