Access Log
Contents
2006/08/26
Location
/sys/log/http
Description
Log file for Pegasus is "/sys/log/http
". The followings are the sample.
ar Jan 5 17:28:19 375268 219.162.220.200 ar GET /image/logo.gif
ar Jan 5 17:28:19 375268 219.162.220.200 ar sent /doc/image/logo.gif
ar Jan 5 17:44:11 375323 218.228.221.208 plan9 GET /prog/v.dx_html
ar Jan 5 17:44:11 375323 218.228.221.208 plan9 done /bin/dx
- first field
-
name of server
- second to fourth field
-
accessed month, day and time
- 5th field
-
process ID
- 6th field
-
IP of client
- 7th field
-
host:port
if port number is 80
then ":80
" is omitted
- 8th to 9th field
-
request and the result
They are shown in pair. the result is "sent
" or "done
" . The latter is for CGI. If CGI end abnormally
# exit_status
continues
If you find other formats, they are for debugging.
Suppressing verbose output
You might feel the output is too much.
Header output is precious for debugging, but that makes noisy.
It comes from the line below in httpd.c.
logit(c, "header: %s", c->header);
Please comment out if you don't need it.