help in squid acces log file

Emilio Casbas ecasbas at unav.es
Thu Jul 26 06:52:41 UTC 2007


Paulus Junior Lazuardi escribió:
> The access time is not in human readable time format, it's actually in the
> first field of the line in the log file.
> 

To make it human readable:


#! /usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;

http://wiki.squid-cache.org/SquidFaq/SquidLogs#head-903e00896639a4de9acf7a11b20b721eb3b64527


Thanks
Emilio C.




More information about the redhat-list mailing list