# HG changeset patch # User Ruslan Ermilov # Date 1359725648 -14400 # Node ID ddd22f57152968a9c8bfc1dbcd80bf331b3b26af # Parent ae15915990ad23d42fd3bc166a3974cfefa39add Variables $pipe, $request_length, $time_iso8601, and $time_local. diff -r ae15915990ad -r ddd22f571529 xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml Wed Jan 30 19:52:12 2013 +0400 +++ b/xml/en/docs/http/ngx_http_core_module.xml Fri Feb 01 17:34:08 2013 +0400 @@ -10,7 +10,7 @@ + rev="15">
@@ -2804,6 +2804,12 @@ PID of the worker process +$pipe + +“p” if request was pipelined, “.” +otherwise (1.3.12) + + $query_string same as $args @@ -2882,6 +2888,11 @@ directives, and the request URI +$request_length + +request length (including request line, header, and request body) (1.3.12) + + $request_method request method, usually @@ -2956,6 +2967,16 @@ that support the TCP_INFO socket option +$time_iso8601 + +local time in the ISO 8601 standard format (1.3.12) + + +$time_local + +local time in the Common Log Format (1.3.12) + + $uri current URI in request, normalized diff -r ae15915990ad -r ddd22f571529 xml/en/docs/http/ngx_http_log_module.xml --- a/xml/en/docs/http/ngx_http_log_module.xml Wed Jan 30 19:52:12 2013 +0400 +++ b/xml/en/docs/http/ngx_http_log_module.xml Fri Feb 01 17:34:08 2013 +0400 @@ -10,7 +10,7 @@ + rev="8">
@@ -195,38 +195,21 @@ $bytes_sent the number of bytes sent to a client - -Since versions 1.3.8 and 1.2.5 there is a common variable with the -same name. - $connection connection serial number - -Since versions 1.3.8 and 1.2.5 there is a common variable with the -same name. - $connection_requests the current number of requests made through a connection (1.1.18) - -Since versions 1.3.8 and 1.2.5 there is a common variable with the -same -name. - $msec time in seconds with a milliseconds resolution at the time of log write - -Since versions 1.3.9 and 1.2.6 there is a common variable with the -same name. - $pipe @@ -245,19 +228,11 @@ request processing time in seconds with a milliseconds resolution; time elapsed between the first bytes were read from the client and the log write after the last bytes were sent to the client - -Since versions 1.3.9 and 1.2.6 there is a common variable with the -same name. - $status response status - -Since versions 1.3.2 and 1.2.2 there is a common variable with the -same name. - $time_iso8601 @@ -271,6 +246,33 @@ + + +In modern versions of nginx variables +$status +(1.3.2, 1.2.2), +$bytes_sent +(1.3.8, 1.2.5), +$connection +(1.3.8, 1.2.5), +$connection_requests +(1.3.8, 1.2.5), +$msec +(1.3.9, 1.2.6), +$request_time +(1.3.9, 1.2.6), +$pipe +(1.3.12), +$request_length +(1.3.12), +$time_iso8601 +(1.3.12), +and +$time_local +(1.3.12) +are also available as common variables. + + diff -r ae15915990ad -r ddd22f571529 xml/ru/docs/http/ngx_http_core_module.xml --- a/xml/ru/docs/http/ngx_http_core_module.xml Wed Jan 30 19:52:12 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_core_module.xml Fri Feb 01 17:34:08 2013 +0400 @@ -10,7 +10,7 @@ + rev="15">
@@ -2791,6 +2791,12 @@ номер (PID) рабочего процесса +$pipe + +“p” если запрос был pipelined, иначе “.” +(1.3.12) + + $query_string то же, что и $args @@ -2867,6 +2873,11 @@ или и URI запроса +$request_length + +длина запроса (включая строку запроса, заголовок и тело запроса) (1.3.12) + + $request_method метод запроса, обычно @@ -2930,6 +2941,16 @@ статус ответа (1.3.2, 1.2.2) +$time_iso8601 + +локальное время в формате по стандарту ISO 8601 (1.3.12) + + +$time_local + +локальное время в Common Log Format (1.3.12) + + $tcpinfo_rtt, $tcpinfo_rttvar, diff -r ae15915990ad -r ddd22f571529 xml/ru/docs/http/ngx_http_log_module.xml --- a/xml/ru/docs/http/ngx_http_log_module.xml Wed Jan 30 19:52:12 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_log_module.xml Fri Feb 01 17:34:08 2013 +0400 @@ -10,7 +10,7 @@ + rev="8">
@@ -193,40 +193,21 @@ $bytes_sent число байт, переданное клиенту - -Начиная с версий 1.3.8 и 1.2.5 существует общая переменная с -тем же -именем. - $connection порядковый номер соединения - -Начиная с версий 1.3.8 и 1.2.5 существует общая переменная с -тем же -именем. - $connection_requests текущее число запросов в соединении (1.1.18) - -Начиная с версий 1.3.8 и 1.2.5 существует общая переменная с -тем же -именем. - $msec время в секундах с точностью до миллисекунд на момент записи в лог - -Начиная с версий 1.3.9 и 1.2.6 существует общая переменная с -тем же именем. - $pipe @@ -244,19 +225,11 @@ время обработки запроса в секундах с точностью до миллисекунд; время, прошедшее с момента чтения первых байт от клиента до момента записи в лог после отправки последних байт клиенту - -Начиная с версий 1.3.9 и 1.2.6 существует общая переменная с -тем же именем. - $status статус ответа - -Начиная с версий 1.3.2 и 1.2.2 существует общая переменная с -тем же именем. - $time_iso8601 @@ -270,6 +243,33 @@ + + +В современных версиях nginx переменные +$status +(1.3.2, 1.2.2), +$bytes_sent +(1.3.8, 1.2.5), +$connection +(1.3.8, 1.2.5), +$connection_requests +(1.3.8, 1.2.5), +$msec +(1.3.9, 1.2.6), +$request_time +(1.3.9, 1.2.6), +$pipe +(1.3.12), +$request_length +(1.3.12), +$time_iso8601 +(1.3.12) +и +$time_local +(1.3.12) +также доступны как общие переменные. + +