新功能发布记录
Broker 版本升级记录
公告





bin/logstash-plugin list,查看已经支持的插件是否含有 logstash-input-kafka。
input {kafka {bootstrap_servers => "xx.xx.xx.xx:xxxx" // ckafka 接入地址group_id => "logstash_group" // ckafka groupid 名称topics => ["logstash_test"] // ckafka topic 名称consumer_threads => 3 // 消费线程数,一般与 ckafka 分区数一致auto_offset_reset => "earliest"security_protocol => "SASL_PLAINTEXT"sasl_mechanism => "PLAIN"jaas_path => "xx/xx/kafka-client-jaas.conf"}}output {stdout{codec=>rubydebug}}
KafkaClient {org.apache.kafka.common.security.plain.PlainLoginModule requiredusername="username"password="password";};
./logstash -f input.conf

bin/logstash-plugin list,查看已经支持的插件是否含有 logstash-output-kafka。
input {stdin{}}output {kafka {bootstrap_servers => "xx.xx.xx.xx:xxxx" // ckafka 接入地址topic_id => "logstash_test" // ckafka topic 名称security_protocol => "SASL_PLAINTEXT"sasl_mechanism => "PLAIN"jaas_path => "xx/xx/kafka-client-jaas.conf"}}
KafkaClient {org.apache.kafka.common.security.plain.PlainLoginModule requiredusername="username"password="password";};
./logstash -f output.conf


参数 | 描述 |
bootstrapServers | 接入地址,在控制台的弹性 Topic 基本信息页面获取。 ![]() |
username | 用户名,在控制台的弹性 Topic 基本信息页面获取。 |
password | 用户密码,在控制台的弹性 Topic 基本信息页面获取。 |
topic_id | Topic 名称,在控制台的弹性 Topic 基本信息页面获取。 |
group.id | 消费组名称,在控制台的弹性 Topic 的订阅关系列表获取。 ![]() |
文档反馈