# No upstream\_response\_time in access log file

**URL:** <https://www.ruby-forum.com/t/no-upstream-response-time-in-access-log-file/224216>\
**Category:** NGINX\
**Created:** [November 3, 2012, 2:13pm UTC](https://www.ruby-forum.com/t/no-upstream-response-time-in-access-log-file/224216 "2012-11-03T14:13:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [November 3, 2012, 2:13pm UTC](https://www.ruby-forum.com/t/no-upstream-response-time-in-access-log-file/224216/1 "2012-11-03T14:13:58Z")

</div>

i use nginx as reverse proxy server , and php-fpm as fast cgi upstream.  
i found some access in nginx access log file doesen’t has a  
“$upstream\_response\_time” value but a “-” character instead , and  
also  
has “$response\_time” value.  
why ?

for example:

71.213.141.240 - 31/Oct/2012:13:09:34 +0800 POST  
/php/xyz/iface/?key=be7fc0cdf0afbfedff1e09ec6443823a&device\_id=351870052329449&network=1&ua=LT18i&os=2.3.4&version=3.7&category\_id=2&f\_ps=10&s=5&ps=30&pn=1&pcat=2&up\_tm=1351655451272  
HTTP/1.1 499 0($body\_bytes\_sent) - Dalvik/1.4.0 (Linux; U; Android  
2.3.4;  
LT18i Build/4.0.2.A.0.62) 21($content\_length) 2.448($request\_time)  
-($upstream\_response\_time) - - -

the response\_time is 2.448,but no upstream\_response\_time, the http  
response code is 499,dosen’t mean that nginx did not finish the  
“connection” and php-fpm even has no chance to “see” the access ?

Posted at Nginx Forum:

> **[No upstream\_response\_time in access log file](https://forum.nginx.org/read.php?2,232482,232482#msg-232482)**
>
> i use nginx as reverse proxy server , and php-fpm as fast cgi upstream. i found some access in nginx access log file doesen't has a "$upstream\_response\_time" value but a "-" character instead ,,,, and also has...

---

<div class="post-metadata">

**Author:** ![jonefee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecd19e/32.png) [@jonefee](https://www.ruby-forum.com/u/jonefee)\
**Post date:** [November 9, 2012, 4:12am UTC](https://www.ruby-forum.com/t/no-upstream-response-time-in-access-log-file/224216/2 "2012-11-09T04:12:32Z")

</div>

Hello!

On Sat, Nov 03, 2012 at 09:13:30AM -0400, jonefee wrote:

> HTTP/1.1 499 0($body\_bytes\_sent) - Dalvik/1.4.0 (Linux; U; Android 2.3.4;  
> LT18i Build/4.0.2.A.0.62) 21($content\_length) 2.448($request\_time)  
> -($upstream\_response\_time) - - -
> 
> the response\_time is 2.448,but no upstream\_response\_time, the http  
> response code is 499,dosen’t mean that nginx did not finish the  
> “connection” and php-fpm even has no chance to “see” the access ?

The connection was closed by a client before nginx got anything  
from upstream, hence nginx closed upstream connection as well.  
The 499 status code logged to indicate this, and there is no  
$upstream\_response\_time for the same reason.

–  
Maxim D.

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.
