Re: [squid-users] Access log file

From: Dan Larsson <dl@dont-contact.us>
Date: Tue, 26 Jun 2001 08:50:22 +0200 (CEST)

How can I know the time by looking at the access log
file?

The times in the access log are as unix timestamps.

perl -wlne 's/^(\d+)\.\d+/localtime($1)/e;print' /path/to/access.log

Regards
+------
Dan Larsson | Tel: +46 8 550 120 21
Tyfon Svenska AB | Fax: +46 8 550 120 02
GPG and PGP keys | finger dl@hq1.tyfon.net
Received on Tue Jun 26 2001 - 00:50:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:50 MST