How Can I Log body for UDP log


I need capture body and send log to udp and my script in pyspark transform and send to aws kinesis.
I change file basic.lua add ngx.req.read_body and ngx.req.get_body_data, restart kong but body awalys null.
How Can I change basic.lua or udp plugin to send body data ?



Note, UDP does have its size limitations on a tx.


I Recived message error in error.log