Re: log timeouts to access log

2013-10-11 Thread Richard Kearsley
On 11/10/13 12:25, Maxim Dounin wrote: 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. http://nginx.org/en/docs/http/ngx_http_core_module.html#var_request_completion thank

Re: log timeouts to access log

2013-10-11 Thread Maxim Dounin
Hello! On Fri, Oct 11, 2013 at 12:11:10PM +0100, Richard Kearsley wrote: > Hi > I would like to log an indication of weather a request ended because > of a client timeout - in the access.log > > e.g. > > log_format normal '$remote_addr - $remote_user [$time_local] ' > '"$request" $status $bytes

log timeouts to access log

2013-10-11 Thread Richard Kearsley
Hi I would like to log an indication of weather a request ended because of a client timeout - in the access.log e.g. log_format normal '$remote_addr - $remote_user [$time_local] ' '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent" "$client_send_timed_out"'; where $client_