Converting Log Files to NCSA Format

You can use the convlog utility to convert your Web server's log files to NCSA Common log file format. The converter can also replace IP addresses with DNS names during conversion of Microsoft IIS and Extended format log files to NCSA format, or it can be used to replace IP addresses with DNS names inside an NCSA log file. Time offsets can also be converted using this utility.

Note   Using this utility with W3C Extended log files that contain process accounting log information will result in the loss of any Process Accounting information.

To convert log files to other formats
  1. In a command prompt window, type convlog plus one of more of the following switches.

Examples:

The command convlog -ii inetsv1.log -d -t ncsa:-0700 converts the Inetsv1.log file to an NCSA Common log file format with DNS names, corrected for a seven-hour GMT offset.

The command convlog -ii inetsv1.log -l1 -t ncsa:+0900 -o \Logfiles\Japan\ converts the Inetsv1.log file from a Microsoft IIS log file format to an NCSA Common log file format, corrected for a nine-hour GMT offset (that is, Tokyo time), sets its date to the Japanese date format, and sends it to the folder named Japan in the folder named Logfiles on the current drive.

The command convlog -ie extend1.log -o D:\Temp\NCSALogs converts the Extend1.log file from W3C Extended log file format to an NCSA Common log file format and outputs it to the NCSALogs folder in the D:\Temp directory. The IP addresses are not replaced by DNS names.

The command convlog -in ncsa1.log -o -d \\REMOTE_MACHINE\REMOTE_SHARE\NCSALogs outputs the Ncsa1.log file in NCSA Common log file format to the NCSALogs folder in the shared directory of a remote drive. The IP addresses are replaced by DNS names and there is no file format conversion.

The file names produced by the DNS conversion process use the following convention:

For example, if Inetsv1.log is a log file using the Microsoft IIS log file format, without DNS conversion, the resulting output log file is Inetsv1.log.ncsa. However, if you enable the DNS conversion feature, the resulting output log file is Inetsv1.log.ncsa.dns.

Related Topics


© 1997-1999 Microsoft Corporation. All rights reserved.