Need to Log request and response full content (Request body response data and headers )

I want to get all the details on the API call, Mentioned in the subject but am unable to get Request body response data and headers When API is succeded.
Is there any way to get all this content to make a log for me please let me know so I can go through it and implement it to generate the log.
I am using a Ubuntu 18.04 environment with the latest version of OpenSearch 2.0 .
I also checked with the Audit log but it generates request data if API does not succeded.

Hello @muzahid - are there errors you see?

(also, moving to OpenSearch category)