Hi, Edda,
refer to
https://github.com/apache/apisix/blob/master/apisix/utils/log-util.lua#L357
You can add the `max_req_body_bytes` parameter in the http_logger plugin,
welcome PR for it.

Thanks,
Ming Wen, Apache APISIX PMC Chair


On Thu, 24 Apr 2025 at 17:17, Edda Dal Santo <edda.dalsa...@units.it> wrote:

> Hi.
>
> We write to ask for some help on an issue we're facing with Apisix
> http-logger and which is blocking us in production. We set
> include_resp_body to true because we need to log response bodies to an
> external server which we use as a mirroring service. We have noticed
> that response bodies larger than 512 KB are being truncated and this is
> a problem for us because we need to handle bodies of several MBs in size
> without data loss. We didn't find any reference in the documentation
> about this limitation for the plugin and we wonder: where is this 512 KB
> threshold defined? Is it an internal setting of Apisix? Is it modifiable?
> We assume that this is a common feature of all built-in logger plugins,
> so it wouldn't be any different using another one.
>
> We’d really appreciate any hint/help on this, even negative responses
> are welcome. Could anybody tell us at least that what we want to obtain
> is not feasible?
>
> Thanks,
> Edda
>
>

Reply via email to