log timeouts to access log
mdounin at mdounin.ru
Fri Oct 11 11:25:13 UTC 2013
On Fri, Oct 11, 2013 at 12:11:10PM +0100, Richard Kearsley wrote:
> I would like to log an indication of weather a request ended because
> of a client timeout - in the access.log
> log_format normal '$remote_addr - $remote_user [$time_local] '
> '"$request" $status $bytes_sent ' '"$http_referer"
> "$http_user_agent" "$client_send_timed_out"';
> where $client_send_timed_out would be a true/false or an 0/1 etc
> Is there anything in there that would allow me to log that?
Closest to what you ask about I can think of is the
$request_completion variable. Though it marks not only timeouts
but whether a request was completely served or not.
More information about the nginx