Changes

From SME Server
Jump to navigationJump to search
213 bytes added ,  14:18, 27 September 2007
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 ====
97

edits

Navigation menu