pixeldin commented on PR #8722:
URL: https://github.com/apache/apisix/pull/8722#issuecomment-1410146727

   > > > Hi @pixeldin how can I avoid recording full response body if it's too 
long? (Can I truncate the response to max 1024 bytes?)
   > > 
   > > 
   > > IMO, truncating body by length may lose some data unexpected. What about 
trying to extract the target response body you concerned in upstream or middle 
layer at first?
   > 
   > I'm trying to record the request/response into clickhouse for audit 
purpose. while the json response maybe too large. I think if we have some 
normal / quick config, then I don't need to write code to do that. (For now, I 
set a column `response` to store all response related data.) I don't think it's 
a good idea if the body in response is too large when doing olap. I also 
checked the operators here - 
https://github.com/api7/lua-resty-expr#operator-list, It doesn't provide a 
operator like `length`
   
   I know your mean. As I know, there is no suggestion for me about the body 
length limit in this scenario. Maybe you can start and create a new issue for 
this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to