Re: log file conversion (OT?)

2006-01-03 Thread Doug Poland
On 11/9/05, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2005-11-09 13:44, Bart Silverstrim [EMAIL PROTECTED] wrote: On Nov 9, 2005, at 1:03 PM, Giorgos Keramidas wrote: Yes. Perl should work fine here. $ echo '1131556815.537101 172.16.2.153 TCP_HIT/200 35674 GET' | \

Re: log file conversion (OT?)

2006-01-03 Thread Giorgos Keramidas
On 2006-01-03 14:05, Doug Poland [EMAIL PROTECTED] wrote: I wrote some time ago: $ echo '1131556815.537101 172.16.2.153 TCP_HIT/200 35674 GET' | \ perl -MPOSIX=strftime \ -pe 'chomp; @x=split /\./; \ $ts = strftime %Y-%m-%d %H:%M:%S, (localtime($x[0])); \

log file conversion (OT?)

2005-11-09 Thread Bart Silverstrim
I have Squid running on a FreeBSD system and the log file (access.log) has lines like 1131556815.537101 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

Re: log file conversion (OT?)

2005-11-09 Thread Giorgos Keramidas
On 2005-11-09 12:36, Bart Silverstrim [EMAIL PROTECTED] wrote: I have Squid running on a FreeBSD system and the log file (access.log) has lines like 1131556815.537101 172.16.2.153 TCP_HIT/200 35674 GET http://www.urprize2.com/adv77/images/header_08_23_05.gif - NONE/- image/gif

Re: log file conversion (OT?)

2005-11-09 Thread Bart Silverstrim
On Nov 9, 2005, at 1:03 PM, Giorgos Keramidas wrote: On 2005-11-09 12:36, Bart Silverstrim [EMAIL PROTECTED] wrote: I have Squid running on a FreeBSD system and the log file (access.log) has lines like 1131556815.537101 172.16.2.153 TCP_HIT/200 35674 GET

Re: log file conversion (OT?)

2005-11-09 Thread Giorgos Keramidas
On 2005-11-09 13:44, Bart Silverstrim [EMAIL PROTECTED] wrote: On Nov 9, 2005, at 1:03 PM, Giorgos Keramidas wrote: Yes. Perl should work fine here. $ echo '1131556815.537101 172.16.2.153 TCP_HIT/200 35674 GET' | \ perl -MPOSIX=strftime \ -pe 'chomp; @x=split /\./; \

Re: log file conversion (OT?)

2005-11-09 Thread Bart Silverstrim
On Nov 9, 2005, at 1:48 PM, Giorgos Keramidas wrote: On 2005-11-09 13:44, Bart Silverstrim [EMAIL PROTECTED] wrote: On Nov 9, 2005, at 1:03 PM, Giorgos Keramidas wrote: Yes. Perl should work fine here. $ echo '1131556815.537101 172.16.2.153 TCP_HIT/200 35674 GET' | \ perl