Re: [squid-users] time in logs

From: Dave Holland <[email protected]>
Date: Wed, 30 Jun 2004 17:37:19 +0100

On Wed, Jun 30, 2004 at 12:46:22PM -0300, Peter Marshall wrote:
> Is there anyway to have a human readable time in the access logs ?

/usr/bin/perl -nle '@x = split " ", $_, 2;
  print scalar localtime $x[0], " $x[1] ";' < access.log

Dave

-- 
** Dave Holland ** Systems Support  -  Special Projects Team **
** 01223 834244 ** Sanger Institute, Hinxton, Cambridge, UK  **
"Be sure to vent your whale before moving it."
Received on Wed Jun 30 2004 - 10:37:24 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jul 01 2004 - 12:00:03 MDT