Date: Wed, 9 Nov 2005 12:36:43 -0500 From: Bart Silverstrim <bsilverstrim@athensasd.org> To: Free BSD Questions list <freebsd-questions@freebsd.org> Subject: log file conversion (OT?) Message-ID: <06fe145ebc265841b4c499f5dc1e72ab@athensasd.org>
next in thread | raw e-mail | index | archive | help
I have Squid running on a FreeBSD system and the log file (access.log) has lines like 1131556815.537 101 172.16.2.153 TCP_HIT/200 35674 GET http://www.urprize2.com/adv77/images/header_08_23_05.gif - NONE/- image/gif 1131556815.584 47 172.16.2.153 TCP_HIT/200 1828 GET http://www.urprize2.com/adv77/images/timer.swf - NONE/- application/x-shockwave-flash in it. Is there a simple way or a one- or two-liner script that can take the epoch time in the first column and replace it with the actual time/date stamp in human-readable format?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?06fe145ebc265841b4c499f5dc1e72ab>