Issue with http-log plugin


#1

I am attempting to use the http-log plugin to send access requests to our ELK system. I have enabled debug logging on kong and it appears that the request is being made, but I’m not getting anything. From the system running kong, I can perform a curl command to the endpoint and everything is working okay. is there any way to enable additional debugging and output on the http-log plugin to see what response the plugin is getting (or specifically what request is being made)?


#2

Where are you writing to log? stderr or to file with kong? I certainly see error logs when the plugin has issues connecting/L4 errors.


#3

We run kong in kube and have all admin/proxy access/error logs going to /dev/stdout
This is what we do see in the logs

127.0.0.1 - admin [25/Jan/2019:02:41:04 +0000] "GET /a/b/c HTTP/1.1" 200 290 "-" "PostmanRuntime/7.3.0"
2019/01/25 02:41:04 [debug] 36#0: *24045 [lua] http.lua:633: send_request():
POST / HTTP/1.1
User-Agent: lua-resty-http/0.12 (Lua) ngx_lua/10013
Content-Length: 1964
Content-Type: application/json
Host: logstash.us-east-1.elb.amazonaws.com
Authorization: Basic ffffffffffff

#4

Anyone have any thoughts?