You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 or nginx -V): openresty/1.25.3.2
The text was updated successfully, but these errors were encountered:
This issue is currently blocking us in production, and we really need to overcome it as soon as possible.
Is there maybe any workaround or change in the NGINX configuration that could help? It seems to us that this limitation in size is independent of the http_logger configuration and resides somewhere else.
Any update or hint would be greatly appreciated. Thanks in advance for your support!
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:
Questions:
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
Environment
apisix version
): 3.10uname -a
): Linuxopenresty -V
ornginx -V
): openresty/1.25.3.2The text was updated successfully, but these errors were encountered: