Skip to content

fintechworks/kong-plugin-tcp-log-extended

 
 

Repository files navigation

TCP Log Plugin

Configuration

curl -X POST \
  http://KONG_ADMIN_URL/plugins \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'name=tcp-log-extended&config.host=LOG_SERVER_URL&config.port=LOG_SERVER_PORT&config.req_body=true&config.res_body=true'

KONG_ADMIN_URL: Kong admin url

params

  • name: tcp-log-extended
  • config.host: LOG_SERVER_URL
  • config.port: LOG_SERVER_PORT
  • config.req_body: true|false (default: false)
  • config.res_body: true|false (default: false)

Installation

Generate files

luarocks make

Pack the rockfile

luarocks pack kong-plugin-tcp-log-extended 0.0.1-1

Install

luarocks install kong-plugin-tcp-log-extended

Don't forget to enable this plugin in the kong configuration, or by exporting KONG_CUSTOM_PLUGINS variable

export KONG_CUSTOM_PLUGINS="tcp-log-extended"

About

kong-plugin-tcp-log-extended

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 98.5%
  • Shell 1.5%