Date: Wed, 29 Mar 2000 13:12:31 -0700 From: Charles Randall <crandall@matchlogic.com> To: Arcady Genkin <a.genkin@utoronto.ca>, freebsd-questions@FreeBSD.ORG Subject: RE: apache logs unsorted Message-ID: <5FE9B713CCCDD311A03400508B8B30137DABC5@bdr-xcln.is.matchlogic.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5FE9B713CCCDD311A03400508B8B30137DABC5>