Kafka REST Proxy
The Kafka rest (kafka-rest) output plugin lets you flush your records into a Kafka REST Proxy server. The following instructions assume you have an operational Kafka REST Proxy and Kafka services running in your environment.
Configuration parameters
This plugin supports the following parameters:
avro_http_header
Include Avro header in the HTTP request.
false
host
IP address or hostname of the target Kafka REST Proxy server.
127.0.0.1
include_tag_key
Append the tag name to the final record.
false
message_key
Optional message key to set.
none
partition
Optional partition number.
-1
port
TCP port of the target Kafka REST Proxy server.
8082
tag_key
If include_tag_key is enabled, defines the key name for the tag.
_flb-key
time_key
Name of the field that holds the record timestamp.
@timestamp
time_key_format
Format of the timestamp.
%Y-%m-%dT%H:%M:%S
topic
Set the Kafka topic.
fluent-bit
url_path
Optional HTTP URL path for the target web server. For example, /something.
none
TLS / SSL
The Kafka REST Proxy output plugin supports TLS/SSL. For more details about the properties available and general configuration, see TLS/SSL.
Get started
To insert records into a Kafka REST Proxy service, you can run the plugin from the command line or through the configuration file.
Command line
The Kafka REST plugin can read the parameters from the command line through the -p argument (property):
Configuration file
In your main configuration file append the following:
Last updated
Was this helpful?