10.2.3 Output formats of the web server logs
The output formats of the request log and access log of the web server are described below.
Request log
- Output format
-
[time] (server_process_ID) client : hws <-- (client_IP_address:port_number, server_IP_address:port_number[R])(route_application_information)
- Output example
-
[Tue May 27 10:10:08.045 2014] (564) client : hws --> (10.210.185.27:49222,10.210.185.27:80[A]) [Tue May 27 10:10:08.046 2014] (564) client : hws <-- (10.210.185.27:49222,10.210.185.27:80[R])(10.209.15.47/250/0x0000000000000001)
Access log
You can output the route application information to the access log by specifying %{hws_ap_root}n for the log format.
The example below shows the access log data that is output when the log format is specified as follows:
LogFormat "%h %l %u %t \"%r\" %>s %b %T %{hws_thread_id}P %{hws_ap_root}n" hws_std
- Output example
-
10.210.185.27 - - [27/May/2014:10:10:08.045 +0900] "GET / HTTP/1.0" 200 52 0.001 564 10.209.15.47/250/0x0000000000000001