Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2002 18:17:56 -0000
From:      "Barry Byrne" <barry.byrne@wbtsystems.com>
To:        "Scott Aitken" <null0@pobox.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: Sorting Apache logs by Date and Time
Message-ID:  <NCBBIAMNAKDKFJIIGNPKIELDHFAA.barry.byrne@wbtsystems.com>
In-Reply-To: <20020222050939.A43475@gandalf.scott.sh>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBIAMNAKDKFJIIGNPKIELDHFAA.barry.byrne>