Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tianhao98 opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@tianhao98
Copy link

tianhao98 commented Oct 16, 2024

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):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants
@tianhao98 and others