Search squid archive

Re: squid log time stamps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can use a simple Perl command to convert the Unix timestamps into local time. For example:

perl -pe 's/^\d+\.\d+/localtime($&)/e;' access.log


Regards

Xavier.

Dave escribió:

Hello,
I'm trying to parse the squid access.log output. There's a portion of the output i don't get, it looks like a time stamp: 1134413541.150. If this is a time stamp i need to convert it in to a human readable form such as date, time in time zone, and so forth. Also, in the access denied message template file i'd like to change it's reference from gmt to local time zone.
   Some urgency with the first request.
Thanks.
Dave.



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux