Changes

From SME Server
Jump to navigationJump to search
233 bytes removed ,  12:14, 29 September 2007
m
Removed timeconvert.pl instruction in favour of oneline command line instruction
Line 19: Line 19:  
  tail -f /var/log/qpsmtpd/current | tai64nlocal
 
  tail -f /var/log/qpsmtpd/current | tai64nlocal
   −
Some SME logs are still created using syslog or another process (not multilog). An examples of this is the squid/access.log file. The following perl script filter will convert the times in a squid logfile to human-readable form:
+
Some SME Server log files are still created using syslog or another process (not multilog). An examples of this is the squid/access.log file. The following command will convert the times in a squid logfile to human-readable form:
   −
<pre>#! /usr/bin/perl -p
+
tail /var/log/squid/access.log | perl -pe 's/^\d+\.\d+/localtime $&/e;'
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:
+
[[Bugzilla:3432]] is raised to have this incorporated in the server-manager view log files option.
 
  −
<pre># ./timeconvert.pl /var/log/squid/access.log</pre>
  −
 
  −
You can also do this analog to the first command like this:
  −
 
  −
tail /var/log/squid/access.log | perl -pe 's/^\d+\.\d+/localtime $&/e;'
      
=== Logfile Names ===
 
=== Logfile Names ===

Navigation menu