Opened 19 months ago

#2419 new enhancement

new variable is needed(the port of nginx server which sending the request to back-end)

Reported by: gentle-king@… Owned by:
Priority: minor Milestone:
Component: nginx-module Version: 1.21.x
Keywords: Cc:
uname -a: Linux cent82-2c4g 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.21.4
built by gcc 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC)
built with OpenSSL 1.1.1o 3 May 2022
TLS SNI support enabled
configure arguments: --prefix=/home/ngx/nginx --with-cc-opt='-fstack-protector-all -fPIC -Wl,-z,relro,-z,now,-z,noexecstack' --http-client-body-temp-path=tmp/nginx_client_body --http-proxy-temp-path=tmp/nginx_proxy_temp --http-fastcgi-temp-path=tmp/nginx_fastcgi_temp --http-uwsgi-temp-path=tmp/uwsgi_temp --http-scgi-temp-path=tmp/scgi_temp --with-openssl=/home/ngx/build_ngx/openssl-1.1.1o --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_gzip_static_module --with-http_random_index_module --with-http_stub_status_module --with-pcre=/home/ngx/build_ngx/pcre-8.45 --with-zlib=/home/ngx/build_ngx/zlib-1.2.11 --with-stream

Description

sometimes, in nginx access.log, $upstream_response_time shows back-end cost log time, but back-end log shows little time is cost.

so I need make a tcpdump to judge who is right. and when I got a package, to find it is too many request at same time, it is hard to find the package which is matching to specific access log. need sth. to take part of this filter.

and I find the port of nginx server which sending the request to back-end is a good filter if it is recorded in access.log, and I tried to find it in nginx document, but it seems not exists.

so a new embedded variable which stand for this port is needed.

Change History (0)

Note: See TracTickets for help on using tickets.