Common Log Format
This log format separates parameters with a space. The fields are:
- Client host name or IP address
- Authenticated realm (often just a placeholder -)
- Authenticated username (often just a placeholder -)
- Date and time (enclosed in [brackets])
- The request string (enclosed in "quotes") (see note below)
- The result code (eg, 200, 404, etc)
- The number of bytes returned to the client (excluding header bytes)
The custom log file format string for this format is:
LogFormat=Shmw1qrc
This is a standard format built into FlashStats; you don't need to specify it with a LogFormat= parameter.
Note: Field #5 normally looks like "GET /dir/file.ext HTTP/1.0". However, some web servers generate log files that include the host name at the start of the document so that the fields look like "GET http://www.domain.com:80/dir/file.ext HTTP/1.0". If this is how your log files look, then when you are requesting a report you will have to specify the host name along with the path that you're interested in in the Page To Analyze field. For example, instead of just specifying / you would have to specify http://www.domain.com:80/.
Extended (or Combined) Log Format
This log format is a simple extension of the Common Log Format. The first seven fields are the same as the Common Log Format, and they are followed by two additional
fields (referer and user agent):
- Client host name or IP address
- Authenticated realm (often just a placeholder -)
- Authenticated username (often just a placeholder -)
- Date and time (enclosed in [brackets])
- The request string (enclosed in "quotes")
- The result code (eg, 200, 404, etc)
- The number of bytes returned to the client (excluding header bytes)
- The HTTP REFERER field (enclosed in "quotes")
- The HTTP USER_AGENT field (enclosed in "quotes")
The custom log file format string for this format is:
LogFormat=Shmw1qrcfa
This is a standard format built into FlashStats; you don't need to specify it with a LogFormat= parameter.
Windows Log Format (O'Reilly WebSite)
This log format is supported only by the WebSite web server from O'Reilly Software. If you are running WebSite then we recommend that you use their Combined Log Format as described above. However, if you are using the Windows Log Format, FlashStats will still support it. The fields are tab-delimited. Here is a list of the fields:
- Date and time
- Client host name or IP address
- Server host name or IP address (for multi-homed sites)
- Authenticated realm
- Authenticated username
- HTTP method (eg, GET, POST, HEAD, etc)
- The path portion of the requested URL (does not contain the query string)
- The HTTP REFERER field
- The email address of the client (not used)
- The HTTP USER_AGENT field
- The result code (eg, 200, 404, etc)
- The number of bytes returned to the client (excluding header bytes)
- The time required to process the request (in milliseconds)
The custom log file format string for this format is:
LogFormat=T4h?mw?uf?arc?
This is a standard format built into FlashStats; you don't need to specify it with a LogFormat= parameter.
WebSTAR Log Format (Macintosh)
The WebSTAR log format is self-identifying. Therefore, any combination of fields can be read by FlashStats. See Chapter 2 for details on which fields are required by FlashStats.
Please note that some third-party log rotation utilities do not properly initialize the new log file with the WebSTAR header fields. Because of this, when FlashStats begins to read the file it can't determine what the fields are. Therefore, we recommend that you do not use a third-party log rotation utility. You should instead use the rotater that comes with WebSTAR. (The rotater that came with version 1 of WebSTAR was not very good, but the current version is much better and should be able to handle all of your needs.)
Quid Pro Quo uses a compatible log file format.
The custom log file format string for this format depends upon the fields selected (and their order).
MacHTTP Log Format (Macintosh)
The MacHTTP web server generates the following log file format, with fields separated by tabs:
- Date
- Time (24-hour format)
- The result code as a string (usually OK or ERR)
- Client host name or IP address
- The path portion of the requested URL (does not contain the query string)
- The number of bytes returned to the client (excluding header bytes)
The custom log file format string for this format is:
LogFormat=T29khxc
This is a standard format built into FlashStats; you don't need to specify it with a LogFormat= parameter.
W3C Extended Log File Format (IIS 4 and above)
With IIS 4 and IIS 5, the default log file format used is the W3C Extended Log File Format. This is a flexible, self-identifying format and is the format preferred by FlashStats.
The IIS administrative interface lets you decide which fields to write to your log files. At a minimum you should include the following fields in your log files:
- Date
- Time
- Client IP Address
- Method
- URI Stem
- URI Query
- Http Status
- Bytes Sent
- User Agent
- Referrer
See Chapter 2 for full details on configuring IIS logging.
Support for this standard format is built into FlashStats; you don't need to specify it with a LogFormat= parameter.
Microsoft IIS 3 Log File Format (Windows)
Microsoft IIS 3 uses a special log file format. This format is natively supported by FlashStats. The fields are terminated by a comma and a space (even the last field). The fields are:
- Client host name or IP address
- Authenticated username
- Date (in local format)
- Time (24-hour format)
- The string "W3SVC" indicating a web server entry (as opposed to FTP or Gopher)
- The NetBIOS name of the web server
- The IP address of the web server connected to (useful for multi-homed sites; FlashStats treats this as the Authenticated Realm field)
- The time required to process the request (in milliseconds)
- The number of bytes received from the client
- The number of bytes returned to the client (excluding header bytes)
- The result code (eg, 200, 404, etc)
- Windows [internal] status code
- HTTP method (eg, GET, POST, HEAD, etc)
- The path portion of the requested URL (does not contain the query string)
- The query string portion of the requested URL
The custom log file format string for this format is:
LogFormat=Chw29v?m??cr??xe
This is a standard format built into FlashStats; you don't need to specify it with a LogFormat= parameter.
This old log format is also available on IIS 4 and IIS 5 but should not be used as it is an inferior format.
IIS / PWS FlashLog Format (Maximized Software)
The Microsoft IIS 3 "in*.log" log file format described above does not record the referer or user agent information for a request. Therefore, Maximized Software has released an ISAPI filter plug-in called FlashLog which adds those fields to the log file format. FlashLog is available as a free download from our web site, and is also included as a standard part of FlashStats. FlashLog would only be used in conjunction with the IIS 3 Log File Format, not with the preferred W3C Extended Log File Format.
FlashLog adds the two fields to the log file in a compatible style: they are added to the end of the line, so that they do not interfere with any other parsing software. FlashStats will automatically detect and use the two extended fields if they are present.
Therefore, when running with the FlashLog plug-in, the log file fields are:
- Client host name or IP address
- Authenticated username
- Date (in local format)
- Time (24-hour format)
- The string "W3SVC" indicating a web server entry (as opposed to FTP or Gopher)
- The NetBIOS name of the web server
- The IP address of the web server connected to (useful for multi-homed sites;
FlashStats treats this as the Authenticated Realm field)
- The time required to process the request (in milliseconds)
- The number of bytes received from the client
- The number of bytes returned to the client (excluding header bytes)
- The result code (eg, 200, 404, etc)
- Windows [internal] status code
- HTTP method (eg, GET, POST, HEAD, etc)
- The path portion of the requested URL (does not contain the query string)
- The query string portion of the requested URL
- The HTTP REFERER field
- The HTTP USER_AGENT field
The custom log file format string for this format is:
LogFormat=Chw29v?m??cr??xefa
This is a standard format built into FlashStats; you don't need to specify it with a LogFormat= parameter.
Note that if you include more characters than there are fields in the log, any extra characters will be ignored. For example, the Extended Log Format could also be used for Common Log Format files, and the last two characters (f representing the referer field, and a representing the user agent field) would simply be ignored because the Common Log Format file would not contain those fields.