简体   繁体   English

Kafka vs filebeat 将 Shippong 日志发送到 Logstash

[英]Kafka vs filebeat for shippong logs to logstash

I am currently setting up the central logging system (using ELK) which is estimated to get log data from 100 of micro services and could expand more.我目前正在设置中央日志系统(使用 ELK),估计可以从 100 个微服务中获取日志数据,并且可以扩展更多。 Requirement is to have minimum latency and highly available solution Right now I am stuck on how design should look like.要求是具有最小延迟和高度可用的解决方案现在我被困在设计应该是什么样子上。 While studying over internet, I got the below approach as widely used for such requirements在通过互联网学习时,我得到了以下广泛用于此类要求的方法

Microservice -> filebeat -> kafka -> logstash -> ElasticSearch -> Kibana微服务 -> filebeat -> kafka -> logstash -> ElasticSearch -> Kibana

However, I am struggling to understand if filebeat is really useful in this case.但是,我很难理解 filebeat 在这种情况下是否真的有用。 What if I directly stream logs to Kafka which then ships it to logstash?如果我直接将 ZF7B44CFFAFD5C52223D5498196C8A2E7BZ 日志记录到 Kafka,然后将其发送到 logstash,该怎么办? This will help me to overcome the maintenance of log files and also there will be one component less to monitor and maintain.这将帮助我克服日志文件的维护问题,并且将减少一个需要监控和维护的组件。 I see an advantage of using kafka over filebeat that it can act as a buffer in conditions if the data being shipped is very high in volume or when the ES cluster is unreachable.我看到使用 kafka 优于 filebeat 的优势在于,如果传输的数据量非常大或 ES 集群无法访问,它可以充当缓冲区。 Source: https://www.elastic.co/blog/just-enough-kafka-for-the-elastic-stack-part1资料来源: https://www.elastic.co/blog/just-enough-kafka-for-the-elastic-stack-part1

I want to understand if there is any real benefit of having filebeat that I am unable to realise.我想了解拥有我无法实现的 filebeat 是否有任何真正的好处。

Filebeat can be installed on each of your servers or nodes. Filebeat 可以安装在您的每个服务器或节点上。 Filebeat collects and quickly sends logs. Filebeat 收集并快速发送日志。 It is very fast and lightweight, written in go.它非常快速和轻量级,用 go 编写。

In your case, the advantage is that you don't have to spend time developing the same functionality for collecting and sending logs.在您的情况下,优点是您不必花时间开发相同的功能来收集和发送日志。 You just use and configure the Filebeat for your logging architecture.您只需为您的日志架构使用和配置 Filebeat。 This is very convenient.这非常方便。

Another description of Filebeat is available at the link . Filebeat 的另一种描述可在链接中找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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