Line 15:
Line 15:
<pre>#! /usr/bin/perl -p
<pre>#! /usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;</pre>
s/^\d+\.\d+/localtime $&/e;</pre>
+
+
If the above perl code is put into a script 'timeconvert.pl', and made executable, then the squid access log can be converted using the following command:
+
+
<pre># ./timeconvert.pl /var/log/squid/access.log</pre>
==== E-mail logfiles ====
==== E-mail logfiles ====