From owner-freebsd-questions Thu Feb 21 10:18:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from slate.dublin.wbtsystems.com (slate.dublin.wbtsystems.com [193.120.231.12]) by hub.freebsd.org (Postfix) with ESMTP id 2309737B419 for ; Thu, 21 Feb 2002 10:18:03 -0800 (PST) Received: from spiral (spiral.dublin.wbtsystems.com [193.120.231.190]) (authenticated bits=0) by slate.dublin.wbtsystems.com (8.12.2/8.12.2) with ESMTP id g1LIHxnj052552; Thu, 21 Feb 2002 18:17:59 GMT From: "Barry Byrne" To: "Scott Aitken" , Subject: RE: Sorting Apache logs by Date and Time Date: Thu, 21 Feb 2002 18:17:56 -0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1014315480-44458-168" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20020222050939.A43475@gandalf.scott.sh> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Scanned-By: MIMEDefang 2.5 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format... ------------=_1014315480-44458-168 Content-Type: multipart/mixed; boundary="----------=_1014315481-44458-170" Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) This is a multi-part message in MIME format... ------------=_1014315481-44458-170 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Scott: I don't have a quick solution, but I just wondered are your logs not already in date order given that apache apends data to the end of the log as it is created? - Barry Phone: +353 1 417 0150 Fax: +353 1 478 5544 Email: barry.byrne@wbtsystems.com Web: www.wbtsystems.com > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Scott Aitken > Sent: 21 February 2002 18:10 > To: freebsd-questions@FreeBSD.ORG > Subject: Sorting Apache logs by Date and Time > > > Hi All, > is there a quick way to sort apache logs by the date and time > field if the format is the following: > > 146.101.149.65 - - [22/Feb/2002:04:18:54 +1100] "GET > /images/test.png HTTP/1.0" 200 381 > "http://www-redirect.scott.sh:8080/cgi-bin/fred.pl" "Mozilla/4.0 > (compatible; MSIE 5.5; Windows 98)" > > This is a sample line. > > I have found difficulty in using the sort utility because of the > textual month names, as well as the fact that the separators are > both slashes and colons. > > Regards and TIA, > Scott Aitken > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > ------------=_1014315481-44458-170-- ------------=_1014315480-44458-168-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message