Changes

From SME Server
Jump to navigationJump to search
97 bytes added ,  17:11, 29 September 2007
Line 16: Line 16:  
* Multilog logs to a file named 'current' in a subdirectory named for the service
 
* 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 records time as an "@" followed by "a precise timestamp".   
* Pipe multilog output through '''tai64nlocal''' to have multilog's cryptic time stamp converted to a human-readable form:
+
* 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
 
  tail -f /var/log/qpsmtpd/current | tai64nlocal
   −
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:
+
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 /var/log/squid/access.log | perl -pe 's/^\d+\.\d+/localtime $&/e;'
 
  tail /var/log/squid/access.log | perl -pe 's/^\d+\.\d+/localtime $&/e;'

Navigation menu