Hi Guys, what are options if request/response body needs to be logged with Http-log? Seems like runscope plugin already does this, should be Possible with http-log plugin too?
Maybe just in scenario where something need to be debugged and logging Request Body/ Response Body could be turned on as option in HTTP-LOG Plugin.
Is this possible in any way? I’m using the http log plugin to send my logs to an elasticsearch instance and visualizing it on kibana. But right now I don’t have the request and response bodies.
As the Runscope plugin is already deprecated how can we handle this? Probably putting two different plugins to work together? Or any other way?
Does somebody know if logging the req / res bodies is in Kong’s plans?
Are you sure the file-log plugin will save the body itself? I tested that pretty extensively but I never got it to work that the body was logged in the file. Am I missing some configuration option which is not documented?
+1
I’m trying to log the request body as well, but can’t seem to make it work… the PR mentioned in this thread is still open.
Did anyone manage to make it happen?
I currently log the requests to a Splunk server and was looking for a way to just include the HTTP body in the default tcp plugin logs. I’ll take a look into Moesif, thanks!
I have the same use case as Lucastex has. I am using the Http Log plugin to dump the logs to my elastic search instance and Visualize it on Kibaan. But the response body is not logged as the part of it.
I have a special use case where I need to dump the Response Body as the part of logging so that Reports could be generated in Kibana using the Http Log plugin.
Can the Http Log plugin be tweaked such that we can log the response body in the Elastic instance?
Is there any other Supported Plugin or way. I know the Runscope plugin is deprecated so we cant go with that.
It would be quite helpful if we get the support on this.
@Shubhanshu_Rastogi how are you writing the HTTP logs to Kibana? I tried to point the “HTTP End Point” to my Elastic instance (which Kibana is watching), but that does not seem to be working.
I wrote a blog post about this. If you are using kong 2.4 or later, you can inject request/response body to any logging plugin dynamically using pre-function plugin.