Reputation: 794
What does the last number (5731) mean on this get request? I understand the other things, but I don't even know the term to google it. Thanks in advance
Upvotes: 1
Views: 916
Reputation: 789
The meaning depends on your log format for your configuration; for a common log format:
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log common
the two numbers in your example are:
200 (%>s)
This is the status code that the server sends back to the
client. This information is very valuable, because it reveals whether the request resulted in a successful response (codes beginning in 2), a redirection (codes beginning in 3), an error caused by the client (codes beginning in 4), or an error in the server (codes beginning in 5). The full list of possible status codes can be found in the HTTP specification (RFC2616 section 10).
***> 2326 (%b) The last number indicates
the size of the object returned to the client, not including the response headers. If no content was returned to the client, this value will be "-". To log "0" for no content, use %B instead.***
Source: http://httpd.apache.org/docs/2.0/logs.html#combined
Upvotes: 0
Reputation: 1660
This could be the "content-length" of the response, meaning the 'size in bytes' of the body that was returned as a response to this request.
If you want to confirm that that's the case, try requesting a URL and copying the HTML content (or whatever is returned, maybe JSON...) of the page into a text editor that can tell you the number of characters in the document. If the number at the end of the request (e.g. 5371 as in the screenshot) matches the number of characters in the document, then that number is "content-length"
Upvotes: 2