Re: [squid-users] How do I see correct timestamp???

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 25 Oct 2001 01:06:46 +0200

run the perl script on the log

1. Save the script to a file, and make sure the path to perl is correct
for your system

2. Make that file executable

3. Run the script

   /path/to/script /path/to/your/access.log
or
   cat /path/to/your/access.log | /path/to/script

Boniforti Flavio wrote:
>
> I mean: In a LOG line i see those ugly timestamps... how do I use the tiny
> PERL script to get them in a readable format???
>
> Thanx...
>
> P.S.: the script is taken from the FAQ (6.6 access.log):
> #! /usr/bin/perl -p
> s/^\d+\. \d+ /localtime $&/e;
>
> Thanx in advance.
>
> Boniforti Flavio
> Informa Srl
> Via 42 Martiri, 165
> 28924 Verbania (VB)
> Tel. 0323/586216
> Fax 0323/586672
> http://www.co-ver.it/informa
Received on Wed Oct 24 2001 - 17:25:02 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:03:06 MST