Sample request.log file
The content of the request.log file
is set by
the request-log-format configuration item. The following
table shows all the possible initial request-log-format combinations
that
are based on the existing absolute-uri-in-request-log and host-header-in-request-log configuration
items:
| absolute-uri-in-request-log | host-header-in-request-log | request-log-format | Example output |
|---|---|---|---|
| No | No | %h %l %u %t "%r" %s %b | 10.251.173.1 - sec_master [04/Jan/2009:11:13:07 +1000] "GET /pics/iv30.gif HTTP/1.1" 200 46498 |
| No | Yes | %v %h %l %u %t "%r" %s %b | tamtestbed 10.251.173.1 - sec_master [04/Jan/2009:11:10:04 +1000] "GET /pics/iv30.gif HTTP/1.1" 200 46498 |
| Yes | No | %h %l %u %t "%R" %s %b | 10.251.173.1 - sec_master [04/Jan/2009:11:14:51 +1000] "GET HTTP://tamtestbed/pics/iv30.gif HTTP/1.1" 200 46498 |
| Yes | Yes | %v %h %l %u %t "%R" %s %b | tamtestbed 10.251.173.1 - sec_master [04/Jan/2009:11:16:40 +1000] "GET HTTP://tamtestbed/pics/iv30.gif HTTP/1.1" 200 46498 |