Nginx write: first byte and last byte

I need to log all requests where nginx takes a huge time to respond to user requests. The upstream time is 200ms when the nginx response time is> 333 seconds I would like nginx to register:

  • When he received the first byte of the request
  • When he received the last byte of the request
  • When he sent a request upstream
  • When he got a response from the upstream
+3


source to share





All Articles