kong-error-log

Plugin to expose NGINX error logs for Kong lua plugin consumption

$ luarocks install kong-error-log

This plugin will expose the nginx webserver error logs to a field "kong.ctx.shared.errmsg" that other Kong plugins can consume.

Our use case was simple, we wanted to log the L4 errors NGINX was throwing around problems proxying to backend API services. Hence the observable defaults in our plugin schema that target and trim upstream related NGINX errors.

To leverage this plugin, you will need to define a "lua_capture_error_log 1m;" shm in your nginx conf.

Versions

2.0.1-13 years ago1,736 downloads
2.0.0-14 years ago67 downloads
0.1-05 years ago1,027 downloads

Manifests