Sunday, January 24, 2010

Access log

Understand e log format:

The first thing is to understand how to read log files. Especially access log. (focus on access log for the first project). Access log is recorded in web server (every request sent).

Example : 127.0.0.1 – frank [10/Oct/2000:13:55:36 -0700] “GET /apache_pb.gif HTTP/1.0” 200 2326



I've made this diagram for reference.



# Request line from the client ( as labeled #1,#2,#3 )
1 - method used by client
2 - requested resource
3 - client's protocol

# The second last part is about status. It reveals whether the request resulted in a successful response (codes beginning in 2), a redirection (c.b.i. 3), an error caused by the client (c.b.i 4), an error in the server (c.b.i 5).

E.g : 200 - OK (request has succeeded)
201 - Created
202 - Accepted
301 - Moved permanently
302 - Found
400 - Bad Request
404 - Not Found
503 - Service Unavailable

Refer HERE

No comments:

Post a Comment