Microsoft Peer Web Services automatically logs all activity on your server. You can use this information to analyze traffic to your site and identify possible problems.
This chapter explains how to:
When you set up Peer Web Services, you enable logging to see who has been using the server and how many times your online information was accessed.
To configure logging:
In Internet Service Manager, double-click the service to display its property sheets. The Logging property sheet sets logging for the selected information service.
When logging to a file, the maximum total log line is 1200 bytes. Each field is limited to 150 bytes.
To start logging, select the Enable Logging check box on the Logging property sheet. To stop logging, clear the Enable Logging check box.
Choose Log to File to log activity information for the selected information service to a text file.
Select this check box to generate new logs as specified. If not selected, the same log file will grow indefinitely.
Sets the directory containing the log file.
Lists the filename used for logging. If multiple services are configured to log to the same directory, they will use the same file.
2. Select the Enable Logging check box.
3. Select Log to File.
4. To create a new log file when certain conditions are met, select the Automatically open new log check box.
For the Daily, Weekly, or Monthly option, the log file is closed the first time a log record is generated after midnight on the last day of the current log file. The new log filename will include the date of the first day in the log file.
For the When file size reaches option, every time the log file is closed and a new one is created, the sequential number in the filename is incremented.
When logging to a file, the maximum total log line is 1200 bytes. Each field is limited to 150 bytes.
Following are three entries from a log from a server running the WWW, gopher, and FTP services; the entries are in two tables only because of page-width limitations.
Clients IP address | Clients username | Date |
Time |
Service |
Computer name | IP address of server
|
10.75.176.21 | - | 12/11/95 | 7:55:20 | W3SVC | TREY1 | 10.107.1.121 |
10.16.7.165 | anonymous | 12/11/95 | 23:58:11 | MSFTPSVC | TREY1 | 10.107.1.121 |
10.55.82.244 | - | 12/11/95 | 0:00:34 | GopherSvc | TREY1 | 10.107.1.121 |
Processing time |
Bytes received |
Bytes sent |
Service status code |
Windows NT status code | Name of the operation |
Target of the operation
|
29282 | 277 | 3223 | 200 | 0 | GET | small.gif |
60 | 14 | 0 | 0 | 0 | [376] PASS | intro |
27069 | 21 | 62184 | 0 | 0 | file | form1.bmp |
Parameters for the operation, if applicable, will be listed in the final fields.
The Microsoft Internet Log Converter converts Microsoft Peer Web Services log files to either European Microsoft Windows NT Academic Centre (EMWAC) log file format or the Common Log File format. Convlog.exe is located in the \Inetsrv\Admin directory. At the command prompt, type convlog without parameters to see syntax and examples.
2. In a command prompt window, type the convlog command. See the following syntax and examples.
f = Process FTP log entries
g = Process gopher log entries
w = Process WWW log entries
The default for the -s switch is to convert logs for all services.
m[cachesize] = Specifies to convert IP addresses to computer names. The default cachesize is 5000 bytes.
i = Specifies to not convert IP addresses to computer names.
convlog -t ncsa:-0300 in*.log
convlog -o \\stats\logs c:\logs\in*.log
convlog -sfg in*.log
convlog -nm *.log
convlog -t none -nm:20000 *.log
© 1996 by Microsoft Corporation. All rights reserved.