1752810 Members
5871 Online
108789 Solutions
New Discussion юеВ

squid proxy log file

 
Wilfred Chau_1
Respected Contributor

squid proxy log file

Hi all,
Does anyone know how to convert the time in the squid log to PDT?

Thanks.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: squid proxy log file

Shalom,

What is your systems time zone? /etc/localtime Its a binary file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Wilfred Chau_1
Respected Contributor

Re: squid proxy log file

PDT. The timestamp in the squid log is in UTC.

I find a script to convert it but not sure how to use it. see below.

#! /usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;
Wilfred Chau_1
Respected Contributor

Re: squid proxy log file

alright. I found a way. Thanks everyone.