Re: squid timestamp format

From: Henrik Nordstrom <hno@dont-contact.us>
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.

Example command post processing a Squid access log into human readable
timestamps:
perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e' <access.log

---
Henrik Nordstrom
Spare time Squid hacker
Serban Teodorescu wrote:
> 
> I have read one of your answers about squid in squid mail list
> Please explain me where should i put
> 
> perl -e 'print scalar localtime 903459502, " + 172 msec\n';
> 
> to have the local time set in access.log
> 
> Thank you very much.
> 
> Serban Teodorescu
> Romania
Received on Sun Mar 14 1999 - 14:00:54 MST

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