Заметка по squid, timestamp
Добавлено: 2009-12-06 21:46:12
Часто бывает что надо посмотреть лог сквида по времени доступа, но там стоит время в непонятном формате.
http://www.terrencemiao.com/Webmail/msg00333.html
Здесь нашел решение
perl script convert unix timestamp in squid access.log to normal time:
Может кому пригодиться.
http://www.terrencemiao.com/Webmail/msg00333.html
Здесь нашел решение
perl script convert unix timestamp in squid access.log to normal time:
Код: Выделить всё
<siwc@george> 13:35:29 /mnt/log/proxies> cat timeconvert.pl
#! /usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;
To run:
<siwc@george> 13:35:29 /mnt/log/proxies> timeconvert.pl /mnt/log/proxies/2000/03/grumpy-squid-access.2000-03-09
Может кому пригодиться.