Configuration

configobjectrequired
Hide Child Parameters
custom_fields_by_luaobject

A list of key-value pairs, where the key is the name of a log field and the value is a chunk of Lua code, whose return value sets or replaces the log field value.

* Additional properties are allowed.
hoststringrequired

The IP address or host name to send data to.

keepalivenumber

An optional value in milliseconds that defines how long an idle connection lives before being closed.

Default:60000

portintegerrequired

The port to send data to on the upstream server.

>= 0<= 65535

timeoutnumber

An optional timeout in milliseconds when sending data to the upstream server.

Default:10000

tlsboolean

Indicates whether to perform a TLS handshake against the remote server.

Default:false

tls_snistring

An optional string that defines the SNI (Server Name Indication) hostname to send in the TLS handshake.

consumerobject

If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.

* Additional properties are NOT allowed.
Hide Child Parameters
idstring
protocolsarray[string]

A string representing a protocol, such as HTTP or HTTPS.

Allowed values:grpcgrpcshttphttpstcptlstls_passthroughudpwswss

Default:grpc, grpcs, http, https

routeobject

If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.

* Additional properties are NOT allowed.
Hide Child Parameters
idstring
serviceobject

If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.

* Additional properties are NOT allowed.
Hide Child Parameters
idstring

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!