






Configured Key | Required | Default Value | Description |
bootstrap_servers | Yes | None | Array. Generally, the bootstrap_servers address uses port 9092, for example, 10.0.90.16:9092. |
topic | Yes | None | Topic name rather than the ID. |
max_body_size | No | 8192 | Maximum size of the request or response body. Bodies whose length exceeds this size will be truncated. |
log_req_body | No | false | Whether to print the request body. |
log_res_body | No | false | Whether to print the response body. |
base64_req_body_encoding | No | None | Array. When the request Header content-encoding matches one of the values in this array, the request body is Base64-encoded. |
base64_res_body_encoding | No | None | Array. When the response Header content-encoding matches one of the values in this array, the response body is Base64-encoded. |
log_req_headers | No | true | Whether to print the request headers. |
log_res_headers | No | true | Whether to print the response headers. |
exclude_req_headers | No | None | Array. When request headers are printed, the specified header is deleted. |
exclude_res_headers | No | None | Array. When response headers are printed, the specified header is deleted. |
skip_expr_in_access | No | None | Advanced. Runs a piece of Lua code during the access phase to determine whether to skip printing logs. A return value of true indicates skipping. |
skip_expr_in_body_filter | No | None | Advanced. Runs a piece of Lua code during the body filter phase to determine whether to skip printing logs. A return value of true indicates skipping. |
http_log_mode | No | default | default/close/custom. default is the built-in log field, close indicates shutdown logs, and custom indicates custom logs. |
http_log_custom_format | No | {} | Layer-7 custom log format, such as {"cip": "$remote_addr", "host": "$host"}, which is consistent with that of CLS logs. |
stream_log_mode | No | default | default/close/custom. default is the built-in log field, close indicates shutdown logs, and custom indicates custom logs. |
stream_log_custom_format | No | {} | Layer-4 custom log format, such as {"cip": "$remote_addr", "protocol": "$protocol"}, which is consistent with that of CLS logs. |
batch_size | No | 100 | Length of the message cache queue, which is 100 by default. |
retry_count | No | 3 | Number of message retransmissions. A message is retransmitted when it fails to be sent. |
flush_timeout | No | 2000 | Sending timeout period, in ms. |
compressor | No | Lz4 | Message compression algorithm, which is Lz4 by default. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback