apisix icon indicating copy to clipboard operation
apisix copied to clipboard

help request: output fields of the specified log record format are confused.

Open tianhao98 opened this issue 1 year ago • 0 comments

Description

  • log format config: access_log_format: '{"timestamp":"$time_iso8601","server_addr":"$server_addr","remote_addr":"$remote_addr","remote_port":"$realip_remote_port","all_cookie":"$http_cookie","sec_fetch_site":"$http_sec_fetch_site","http_host":"$http_host","query_string":"$query_string","request_method":"$request_method","uri":"$uri","service":"apisix_backend","request_uri":"$request_uri","status":"$status","body_bytes_sent":"$body_bytes_sent","request_time":"$request_time","upstream_response_time":"$upstream_response_time","upstream_addr":"$upstream_addr","upstream_status":"$upstream_status","http_referer":"$http_referer","http_user_agent":"$http_user_agent","http_x_forwarded_for":"$http_x_forwarded_for","spanId":"$http_X_B3_SpanId","http_token":"$http_token","http_authorizationv2":"$http_authorizationv2","content-type":"$content_type","content-length":"$content_length","traceId":"$http_X_B3_TraceId"}'

  • output log image

  • describe: In the apisix output log, the service field output is rervice field, which is not stable to reproduce, and the field is not stable, and occasionally it is other fields

Environment

  • APISIX version (run apisix version): 3.3.0
  • Operating system (run uname -a): Linux vm-39-34-centos 5.4.119-19.0009.40 #1 SMP Thu Jan 18 14:29:12 CST 2024 x86_64 x86_64 x86_64 GNU/Linux
  • OpenResty / Nginx version (run openresty -V or nginx -V): nginx version: openresty/1.21.4.1
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

tianhao98 avatar Oct 16 '24 03:10 tianhao98