Open
Description
Current Behavior
We’re currently using http_logger plugin on routes in Apisix. The aim is to capture and forward HTTP responses to a mirroring service, thus the attribute include_resp_body is set to true. However, we’ve encountered an issue where response bodies are being truncated at ca. 500KB. Some of the responses we deal with can have order of magnitude of MBs, and having the complete body is crucial for our use case. We didn't find any reference in the documentation about this limitation.
To summarize:
- Response bodies larger than 500KB are being cut off.
- We need the full response body in order to mirror server responses accurately.
Questions:
- Where is this 500KB threshold defined? Is this a limitation of Nginx or is it an internal setting of http_logger?
- Is there a way to configure this threshold and increase the maximum captured body size?
We’d appreciate any guidance on how to lift or modify this limit. Thanks in advance!
Expected Behavior
No truncation of body responses.
Error Logs
No response
Steps to Reproduce
- Configure http_logger
- Send requests to the route with response size bigger than 500K
- Monitor http_logger destination
Environment
- APISIX version (run
apisix version
): 3.10 - Operating system (run
uname -a
): Linux - OpenResty / Nginx version (run
openresty -V
ornginx -V
): openresty/1.25.3.2
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
📋 Backlog