Changes

From SME Server
Jump to navigationJump to search
971 bytes removed ,  01:20, 10 December 2008
fixed in Bugzilla:3432
Line 11: Line 11:  
You can also use shell access, eg, to perform more complex searches or manipulations.
 
You can also use shell access, eg, to perform more complex searches or manipulations.
   −
=== Date Conversions ===
     −
Most of the SME log files are created using D.J. Bernstein's [http://cr.yp.to/daemontools/multilog.html multilog]. 
  −
* Multilog logs to a file named 'current' in a subdirectory named for the service
  −
* Multilog records time as an "@" followed by "a precise timestamp". 
  −
* Multilog timestamps are converted to human-readable form automatically by 'View log files' referenced above.
  −
* At a shell prompt you can pipe multilog output through '''tai64nlocal''' to generate a human-readable time:
  −
tail -f /var/log/qpsmtpd/current | tai64nlocal
  −
  −
Some SME Server log files are still created using syslog or another process (not multilog). An example of this is the squid/access.log file. The following command will convert the times in a squid logfile to human-readable form:
  −
  −
tail -f /var/log/squid/access.log | perl -pe 's/^\d+\.\d+/localtime $&/e;'
  −
  −
[[Bugzilla:3432]] is raised to have this incorporated in the server-manager view log files option.
      
=== Logfile Names ===
 
=== Logfile Names ===

Navigation menu