On Thu, Sep 4, 2008 at 11:23 AM, Michele Mordenti
<michele.mordenti@xxxxxxxxx> wrote:
> Esiste qualcosa di già fatto o devo andare di perl/java etc...
http://www.google.it/search?q=squid+timestamp
http://www.squid-cache.org/mail-archive/squid-users/199903/0358.html
From: Henrik Nordstrom <hno@xxxxxxxxxxxxxxx>
Date: Sun, 14 Mar 1999 21:54:11 +0100
You can't change the format of the Squid logs. What you can do is to
postprocess the logs to present them in human readable format.
perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e' <access.log
http://blog.flocca.com/?p=16
cat access.log | perl -l -a -n -e '$F[0] = scalar localtime $F[0]; print "@F"'
--
guido . zen@xxxxxxxxxxxxxxx . skype://zenmobile
|