From owner-freebsd-questions Wed Mar 29 13: 9:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.rdc3.on.home.com (mail1.rdc3.on.home.com [24.2.9.40]) by hub.freebsd.org (Postfix) with ESMTP id 103CC37BA43 for ; Wed, 29 Mar 2000 13:09:26 -0800 (PST) (envelope-from antipode@thpoon.com) Received: from tea.thpoon.com ([24.114.152.71]) by mail1.rdc3.on.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000329210924.DMPC22349.mail1.rdc3.on.home.com@tea.thpoon.com> for ; Wed, 29 Mar 2000 13:09:24 -0800 Received: from antipode by tea.thpoon.com with local (Exim 3.12 #1 (Debian)) id 12aPiN-0000ge-00 for ; Wed, 29 Mar 2000 16:09:23 -0500 To: freebsd-questions@FreeBSD.ORG Subject: Re: apache logs unsorted References: <5FE9B713CCCDD311A03400508B8B30137DABC5@bdr-xcln.is.matchlogic.com> X-Face: 0=A/O5-+sE[Tf%X>rYr?Y5LD4,:^'jaJ!4jC&UR*ZrrK2>^`g22Qeb]!:d;}2YJ|Hq"LHdF OX`jWX|AT-WVFQ(TPhFVak)0nt$aEdlOq=1~D,:\z5QlVOrZ2(H,mKg=Xr|'VlHA="r Organization: Wgaf From: Arcady Genkin Date: 29 Mar 2000 16:09:23 -0500 In-Reply-To: Charles Randall's message of "Wed, 29 Mar 2000 15:44:58 -0500" Message-ID: <87og7xzdoc.fsf@tea.thpoon.com> Lines: 31 User-Agent: Gnus/5.0803 (Gnus v5.8.3) XEmacs/21.1 (Bryce Canyon) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Charles Randall writes: > Apache makes no guarantee on the ordering of log records. The time > recorded is the time that the request started. When the request > ends, the log record is written. It looks like the log record is not written right away. I have turned on logging of time taken to serve requests (as you suggest below), and they show as zeros for some experimental requests (connecting from local LAN). However, I waited *forever* for the corresponding records with my IP to appear in the log. I gave up and restarted the daemon. Only then did the records get written. So, it seems like apache caches info before writing it into log. I guess this is a good feature, saving some HD seeks. I was only confused when the logging behavior changed after I installed apache-php3 in place of plain apache. I guess I'll sort the records before feeding them to my little script. Maybe some config file option controls this logging behavior... > If you use Apache's configurable logging, > http://www.apache.org/docs/mod/mod_log_config.html > you can specify a log record format that includes "%T" to record the > elapsed time (in integer seconds) to process the request. I'd > suggest that you enable this and hunt down your longest requests. Thanks for the link! -- Arcady Genkin http://www.thpoon.com Nostalgia isn't what it used to be. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message