Forums

What is the composition of access log?

183.208.. - - [27/May/2022:18:14:06 +0000] "POST /new HTTP/1.1" 302 212 "https://treehole.pythonanywhere.com/new" "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.7113.93 Safari/537.36" "183.208.." response-time=0.160

what do these entries mean? and maybe put these on the FAQ

Let's break id down:

  • 183.208.. is the IP of the request (stored in the X-Real-IP header of the request, to be precise), it looks cropped in your example

  • [27/May/2022:18:14:06 +0000] is the server timestamp in UTC

  • "POST /new HTTP/1.1" is the request (type of request: POST, endpoint: /new, protocol: HTTP/1.1)

  • 302 status code

  • 212 bytes sent

  • "https://treehole.pythonanywhere.com/new" is the HTTP Referer

  • "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.7113.93 Safari/537.36" is the user agent

  • "183.208.." again the IP (this time it's X-FORWARDED-FOR header)

  • response-time=0.160 -- how long it took to process the request