kayx23 commented on issue #8418:
URL: https://github.com/apache/apisix/issues/8418#issuecomment-1821937176

   > if you set `log_format`, then it would ignore `include_req_body` and 
`include_resp_body`.
   > And currently, APISIX has no built-in variable to provide the response 
body. But for the request body, a workaround may be to use nginx variable 
`$request_body` in your log format, but if the body is larger than 8kB (APISIX 
setting), then it doesn't work.
   
   I have came across this information when when working on the logger [new 
doc](https://docs.api7.ai/hub/kafka-logger#log-request-bodies-conditionally) 
and added the following information:
   
   
![image](https://github.com/apache/apisix/assets/39619599/1cda78fc-09f2-4fd7-8106-4c718a6f7fab)
   
   As this issue is going stale, @monkeyDluffy6017 @shreemaan-abhishek please 
help evaluate if this should remain open.
   


-- 
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