RE: your mail

From: Miles Lott <milos@dont-contact.us>
Date: Fri, 15 May 1998 11:14:01 -0500

Here is the script. I had to add some lines to check for the existence
of
method CONNECT for people using SSL. Otherwise, I ended up with blank
lines
in the resulting file. So I check for GET or CONNECT.

-----Original Message-----
From: Jaeho Yang [mailto:jhyang@nuri.net]
Sent: Friday, May 15, 1998 9:50 AM
To: assis@uel.br
Cc: andrew@iaccess.com.au; squid-users@nlanr.net
Subject: Re: your mail

Hmm..

I wrote short perl scripts for the same purpose,, use follow routines..

  #!/usr/bin/perl
  
  @month =
('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'
);

  while ($line = <STDIN>) {
    chop($line);
    ($timestamp, $others) = split(" ", $line, 2);
    ($times_sec, $times_msec) = split('\.', $timestamp);

($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(int($tim
es_sec));
    print "$mday/",$month[$mon],"/19$year:$hour:$min:$sec ", $others,
"\n";
  }
  
--J

>
> On Fri, 15 May 1998, Andrew Specht wrote:
> |o| I was wondering if there is a script out there somewhere that
converts the
> |o| number in access.log (or store.log) to the date and time?
> |o|
>
> emulate_http_log on (squid.conf, of course)
>
> ...
> . . . -(o o)-
> _.,-*b'`-`'d*-,._.,-*b'`-`'d*-,._.,-*b'`-`'d*-,._/----oOO--(_)--OOo---
> =
> UNIVERSIDADE ESTADUAL DE LONDRINA - UEL .:. assis @ npd.uel.br
> Nucleo de Processamento de Dados - NPD <*> Marcos Assis Silva
> Gerencia de Software Basico - GSB ":" Analista de Suporte
> Parana - Brasil o PGP key available
> . . . = .
> _.,-*b'`-`'d*-,._.,-*b'`-`'d*-,._.,-*b'`-`'d*-,._.,-*b'`-`'d*-,._.,-*b
>

Received on Fri May 15 1998 - 09:22:23 MDT

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