【发布时间】:2019-04-30 09:11:52
【问题描述】:
我打算将日志发送到我们合作的弹性搜索集群。
我正在使用 td-agent 将日志转发到连接到协作弹性搜索集群的 Kafka 端点。我已经使用 td-agent 安装了 fluent-plugin-kafka 插件,以将日志发送到连接到协作弹性搜索集群的 Kafka 端点
插件网址:https://github.com/fluent/fluent-plugin-kafka
日志发送路径如下:
logs --> td-agent+fluent-plugin-kafka --> kafka cluster --> elasticsearch --> kibana
问题是,Kafka 端点被配置为支持 SASL AUTHENTICATION 而不支持 SSL,由于日志仅通过协作网络路由,我想不需要 SSL 支持。
我收到以下错误:
2019-04-30 17:46:39 +0900 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.3.3/bin/fluentd:8:in `<top (required)>'
2019-04-30 17:46:39 +0900 [error]: #0 /opt/td-agent/embedded/bin/fluentd:23:in `load'
2019-04-30 17:46:39 +0900 [error]: #0 /opt/td-agent/embedded/bin/fluentd:23:in `<main>'
2019-04-30 17:46:39 +0900 [error]: #0 unexpected error error_class=ArgumentError error="SASL authentication requires that SSL is configured"
2019-04-30 17:46:39 +0900 [error]: #0 suppressed same stacktrace
2019-04-30 17:46:39 +0900 [info]: Worker 0 finished unexpectedly with status 1
^C
我的 td-agent 配置是:
#
<source>
@type dummy
dummy {"hello":"world"}
tag test
</source>
<match test>
@type kafka2
brokers stg-ageapdsk101.stg.hnd2.bdd.local:9002,stg-ageapdsk102.stg.hnd2.bdd.local:9002,stg-ageapdsk103.stg.hnd2.bdd.local:9002
principal 'appuser@STGKAFKA100.GEAP.XXX.COM'
keytab 'appuser.keytab'
client_id 'kafka'
sasl_over_ssl false
get_kafka_client_log true
<format>
@type json
</format>
topic_key 'stg_esd_app_elk_1'
get_kafka_client_log true
<buffer topic>
flush_interval 10s
</buffer>
</match>
请帮我解决这个问题。
【问题讨论】:
标签: security networking apache-kafka fluentd sasl