Re: timestamps in access.log

From: Simon Amor <simon@dont-contact.us>
Date: Mon, 18 Aug 1997 16:29:53 +0100

Christian Balzer wrote:
> #!/usr/bin/perl
> #
> # Date Converting Filter - Simon Amor, 7th October 1996 <spa@dmu.ac.uk>
> #
> # Usage: cat access.log | ./dateconv.pl | less
> #
> while (<>) {
> if (/^(\d+)(\..+)$/) {
> $time=localtime($1);
> print substr($time,0,11).substr($time,20,4).substr($time,10,9)."$2\n";
> }
> }

Off-topic: In case anyone wants to contact me about that script for
any reason, my email address has now changed to simon@foobar.net -
mail sent to spa@dmu.ac.uk gets forwarded but mostly dropped into a
wastebin which is emptied when I feel like it (most of it is junk
email).

On-topic: Does anyone have a script which picks out the most
frequently visited pages from access.log which could be adapted to
(or already does) output the results in HTML as a kind of "Hot links"
page? We could use it to give users some URLs to visit which should
already be either fully or partly in the cache and hence save even
more bandwidth.

  Simon

-- 
Simon Amor                        System & Network Administrator 
simon@foobar.net                     Absolute Communications Ltd
http://www.foobar.net/~simon/        Telephone: +44 116 233 0034
Received on Mon Aug 18 1997 - 08:37:12 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:36:47 MST