Reputation: 16015
I want to ask what does the last number on each request in the access log mean?
127.0.0.1 - - [27/Jul/2014:12:49:31 +0300] "GET /battleWS/startServer/11 HTTP/1.1" 200 159
In this case it is 159
, occasionally it's empty -
(dash). Can someone tell me what this is? Thanks!
Upvotes: 0
Views: 3881
Reputation: 6252
The last number which is returned on the apache log in the object size which is returned to the client ..
Understand more about the acces log here.
Upvotes: 1
Reputation: 1063
Documentation says: (%b) The last part 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.
The reason you see a "-" is because it asks if the resource has changed since last time, so it doesn't actually fetch it again.
Google is a lot faster than SO for such simple questions. :)
Upvotes: 1