Introduction
The W3C Extended Log File Format is a web server log format in which the file itself says which fields each line holds. It was proposed by the World Wide Web Consortium in 1996 as a more flexible replacement for the Common Log Format.
It is the default log format of Microsoft’s web server, Internet Information Services
(IIS). IIS writes one file per site per day, with names such as
u_ex261106.log, under C:\inetpub\logs\LogFiles.
Structure
The file is plain text. Lines that start with # are
directives.
#Version gives the format version, 1.0; #Software and
#Date say what wrote the log and when; and #Fields lists the
fields that every following line holds, in order. Field names use prefixes for who the
value belongs to: c- for the client, s- for the server,
cs- for data sent from client to server, and sc- for data sent
back. Directives can appear again later in the file, for example when the server
restarts.
Every other line is one request, with the fields separated by spaces and a hyphen for a field with no value. Times are in UTC.
#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Date: 2026-11-06 10:00:00
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port c-ip sc-status time-taken
2026-11-06 10:00:01 192.0.2.5 GET /index.html - 443 198.51.100.7 200 15
Not described
These pages follow the W3C’s extended log file format note and Microsoft’s HTTP Server API field list. The explorer has no W3C log viewer, so a dropped file is read as text.
Known, not yet covered
- Reference: a check against the URI RFCs the note cites (1738 and 1808), and the rule that a dash may not stand for an empty string, are missing from the directives and fields page.
- Viewer: there is no W3C plugin of its own. A
.logwith a#Fields:line opens in the plain text viewer, whose Log tab reads the field names and shows each entry’s date and time, a level fromsc-status, the client address and the method, address and status, with a row for every line (directive lines are marked). The other fields of each entry are not split into columns, and a file with another extension opens as plain text.
Also used for
- Common Log Format – Apache and nginx access logs: one request per line, in fixed fields.
- Plain text log – One event per line of text, usually led by a time, as syslog writes it.
Links
Software
- Internet Information Services (IIS) – Microsoft’s web server, which writes these logs (Windows)
- GoAccess – log analyser that reads W3C logs (Linux, macOS)
- Text editors – the logs are plain text and open in any editor (Windows, macOS, Linux)
Reference
- Extended Log File Format – the W3C working draft