How to connect Kafka with Elasticsearch?

前端 未结 2 1512
予麋鹿
予麋鹿 2021-02-14 01:53

I am new in Kafka, I use kafka to collect netflow through logstash(it is ok), and I want to send the data to elasticsearch from kafka, but there are some problems.
My questi

相关标签:
2条回答
  • 2021-02-14 02:23

    The empty input block for Kafka will not work, since it doesn't know where to get the data from. The minimal config for your scenario will be something like this:

    input {
        kafka {
                bootstrap_servers => "localhost:9092"
                topics => "test"
        }
    }
    
    0 讨论(0)
  • 2021-02-14 02:32

    I would suggest using Kafka Connect and its Elasticsearch sink. I actually presented on exactly this subject last night :) Here are the slides.

    You can see a detailed example here.

    Update May 2020: See also this tutorial video.

    0 讨论(0)
提交回复
热议问题