From owner-freebsd-questions Wed Mar 29 12:12:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from houston.matchlogic.com (houston.matchlogic.com [205.216.147.127]) by hub.freebsd.org (Postfix) with ESMTP id 846D637B96A for ; Wed, 29 Mar 2000 12:12:33 -0800 (PST) (envelope-from crandall@matchlogic.com) Received: by houston.matchlogic.com with Internet Mail Service (5.5.2650.21) id ; Wed, 29 Mar 2000 13:12:25 -0700 Message-ID: <5FE9B713CCCDD311A03400508B8B30137DABC5@bdr-xcln.is.matchlogic.com> From: Charles Randall To: Arcady Genkin , freebsd-questions@FreeBSD.ORG Subject: RE: apache logs unsorted Date: Wed, 29 Mar 2000 13:12:31 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. 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. Charles -----Original Message----- From: Arcady Genkin [mailto:a.genkin@utoronto.ca] Sent: Wednesday, March 29, 2000 10:47 AM To: freebsd-questions@FreeBSD.ORG Subject: apache logs unsorted Since I upgraded apache from plain 1.3.12 to apache+php3, the log file looks kinda strange, because it's no longer sorted in chronological order. For example, the following lines: ,----[ /var/log/apache_access_log ] | 212.161.27.1 - - [29/Mar/2000:03:54:51 -0500] "GET /icons/cbxSmall.jpg | HTTP/1.0" 200 2537 "http://www.thpoon.com/" "Mozilla/4.0 (compatible; | MSIE 4.01; Windows 95)" | | 192.168.1.2 - - [29/Mar/2000:03:03:42 -0500] "GET | /~antipode/system.html HTTP/1.0" 304 - "http://soup/" "Mozilla/4.72 | [en] (X11; U; Linux 2.2.14 i686; Nav)" | | 212.161.27.1 - - [29/Mar/2000:03:55:16 -0500] "GET | /~antipode/old_photo.jpg HTTP/1.0" 200 28778 | "http://www.thpoon.com/~antipode/index.html" "Mozilla/4.0 (compatible; | MSIE 4.01; Windows 95)" | | 158.227.2.37 - - [29/Mar/2000:02:45:58 -0500] "GET | /~antipode/index.html HTTP/1.0" 200 1638 "http://www.thpoon.com/" | "Mozilla/4.7 [en] (X11; I; Linux 2.2.13 i686)" | | 212.161.27.1 - - [29/Mar/2000:03:54:49 -0500] "GET /standard.css | HTTP/1.0" 200 147 "http://www.thpoon.com/" "Mozilla/4.0 (compatible; | MSIE 4.01; Windows 95)" `---- appear in totally wrong order. If you note, the first one refers to access time 3:54, then 3:03, then 3:55, then 2:45, and then 3:54 again. I have had a script which parses the apache logs. It relied on the lines to appear in the order of access times. That script no longer works now. ;^( Is that something in the config file? -- 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message