【问题标题】:Writing logs to Logstash directly or better through filebeat (Application performance perspective)?直接将日志写入 Logstash 还是通过 filebeat 更好地写入(应用程序性能角度)?
【发布时间】:2020-01-13 00:44:22
【问题描述】:

我在让我的应用程序直接推送到Logstash VS 通过Filebeat 之间进行权衡?

我说的是应用程序性能和紧急情况的观点?

我知道Filebeas 它的一个选项是通过在其配置中接受多个节点来实现logstash 负载平衡,另一方面,将日志从应用程序直接推送到logstash 并使用代理服务器在内部路由之间进行路由logstash 节点。

所以我需要你推荐长期的大力推动解决方案

【问题讨论】:

  • pushing the logs directly to logstash 是什么意思?
  • 我的意思是在我的应用程序中配置log4j2,使用Gelf插件将日志直接写入logstash
  • 你试过了吗?我之所以这么说是因为logstash 从其他来源读取数据。
  • 我使用 Gref 插件

标签: elasticsearch logstash kibana log4j2 filebeat


【解决方案1】:

我建议您查看Logging in the Cloud,它专门讨论了使用 ELK 进行日志记录。尽管您的应用程序可能未在云环境中运行,但最好按照实际情况进行开发。

【讨论】:

  • 这意味着最好直接从 Application -> Logstash 中没有 Filebeat 写入,对吗?
猜你喜欢
  • 2023-02-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-02-19
  • 2018-11-13
  • 1970-01-01
相关资源
最近更新 更多