简体   繁体   中英

Can I use Kafka between Logstash and Elasticsearch? ( Using two Kafka)

I'm trying to integrate Apache Kafka with Elastic Stack (Beats, Logstash, Elasticsearch, and Kibana)

在此处输入图片说明

From the diagram, Kafka is located between Beats and Logstash. I was wondering if I can put another Kafka between Logstash and Elasticsearch. (Where I drew with a red pen.)

Two Kafka sound okay?

Any ideas or thoughts to share?

Yes.

  1. Logstash can write to Kafka as an output.

  2. You can use Kafka Connect Elasticsearch for streaming from Kafka into Elasticsearch.

If you want to buffer/scale the output from Logstash by using Kafka here, it is possible and would make sense.

But bear in mind that you could also:

(a) write from Beats to Kafka and do any processing with KSQL/Kafka Streams etc to write back to Kafka and then Kafka Connect to Elasticsearch or (b) just write from Logstash to Elasticsearch

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM