How to connect Kafka with Elasticsearch?

前端 未结 2 1511
予麋鹿
予麋鹿 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"
        }
    }
    

提交回复
热议问题