Parameters
See plugin common configurations for configuration options available to all plugins.
There are no parameters for this plugin to be configured on routes or services.
Plugin Metadata
tcp
TCP server configurations.
host
IP address or the hostname of the TCP server.
port
vaild vaule:
greater than or equal to 0
Target upstream port.
tls
If true, perform SSL verification.
tls_server_name
Server name for the new TLS extension SNI.
skywalking
Skywalking server configurations.
endpoint_addr
Address of the SkyWalking server.
service_name
Service name for the SkyWalking reporter.
service_instance_name
Service instance name for the SkyWalking reporter. Set to
$hostnameto get the local hostname.
clickhouse
ClickHouse server configurations.
endpoint_addr
ClickHouse endpoint.
user
ClickHouse username.
password
ClickHouse password.
The password is encrypted with AES before being stored in etcd.
database
Name of the database to store the logs.
logtable
Table name to store the logs. The table should have a
datacolumn where the plugin will push logs to.
kafka
Kafka server configurations.
brokers
vaild vaule:
greater than 0
List of Kafka broker nodes.
host
The host of Kafka broker.
port
The port of Kafka broker.
sasl_config
The SASL configuration of Kafka broker
mechanism
vaild vaule:
PLAINThe mechanism of SASL configuration.
user
The user of SASL configuration.
password
The password of SASL configuration.
kafka_topic
Target topic to push the logs for organization.
producer_type
vaild vaule:
asyncorsyncTarget topic to push the logs for organization.
required_acks
vaild vaule:
-1, 0, or 1
Number of acknowledgements the leader needs to receive for the producer to consider the request complete. This controls the durability of the sent records. See Kafka documentation for more information.
key
Key used for allocating partitions for messages.
cluster_name
vaild vaule:
greater than or equal to 1
Name of the cluster. Used when there are two or more Kafka clusters. Only works if
producer_typeis set toasync.meta_refresh_interval
vaild vaule:
greater than or equal to 1
Time interval to auto refresh the metadata. Same as the
refresh_intervalparameter in lua-resty-kafka, but in seconds.
timeout
vaild vaule:
greater than 0
Time to keep the connection alive after sending a request.
keepalive
vaild vaule:
greater than or equal to 1
Time to keep the connection alive after sending data, in seconds.
level
vaild vaule:
STDERR,EMERG,ALERT,CRIT,ERR,ERROR,WARN,NOTICE,INFO, orDEBUGSeverity level to filter the error logs. Note that
ERRis the same asERROR.name
Unique identifier of the plugin for the batch processor. If you use Prometheus to monitor APISIX metrics, the name is exported in
apisix_batch_process_entries.batch_max_size
vaild vaule:
greater than 0
The number of log entries allowed in one batch. Once reached, the batch will be sent to the configured logging service. Setting this parameter to 1 means immediate processing.
inactive_timeout
vaild vaule:
greater than 0
The maximum time in seconds to wait for new logs before sending the batch to the logging service. The value should be smaller than
buffer_duration.buffer_duration
vaild vaule:
greater than 0
The maximum time in seconds from the earliest entry allowed before sending the batch to the logging service.
retry_delay
vaild vaule:
greater than or equal to 0
The time interval in seconds to retry sending the batch to the logging service if the batch was not successfully sent.
max_retry_count
vaild vaule:
greater than or equal to 0
The maximum number of unsuccessful retries allowed before dropping the log entries.