Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2002 05:09:40 +1100
From:      Scott Aitken <null0@pobox.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Sorting Apache logs by Date and Time
Message-ID:  <20020222050939.A43475@gandalf.scott.sh>

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




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