【问题标题】:How to configure FluentD (EFK) with Filebeat?如何使用 Filebeat 配置 FluentD (EFK)?
【发布时间】:2017-09-21 04:38:04
【问题描述】:

我已经为使用 Filebeat 的集中式日志记录系统配置了 ELK-stack(Elasticsearch、Logstash 和 Kibana)集群。现在我被要求使用 Filebeat 重新配置为 EFK(Elasticsearch、FluentD 和 Kibana)。我已禁用 Logstash 并安装了 FluentD,但我无法使用 Filebeat 配置 FluentD。我已经为 Filebeat 安装了FluentD plugin 并修改了/etc/td-agent/td-agent.conf,但它似乎不起作用。

td-agent.conf

<source>
  @type beats
  tag record['@metadata']['beat']
  port 5044
  bind 0.0.0.0
</source>

<match *.**>
  @type copy
   <store>
    #@type file
    @type elasticsearch_dynamic
    logstash_format true
    logstash_prefix ${tag_parts[0]}
    type_name ${record['type']}
  </store>
  <store>
    @type file
    logstash_format true
    logstash_prefix ${tag_parts[0]}
    type_name ${record['type']}
    path /var/log/td-agent/data_logs.*.log
 </store>
</match>

【问题讨论】:

  • 你有没有想过这个问题?我也有同样的问题。

标签: kibana elastic-stack fluentd filebeat efk


【解决方案1】:

在 fluentd 中,源是输入而不是输出,您可能希望匹配相应的 fluentd 标签,这些标签匹配后发送到 filebeats,然后发送到 Elastic。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-07-18
    • 1970-01-01
    • 2022-06-14
    • 1970-01-01
    • 1970-01-01
    • 2021-11-16
    • 2020-09-28
    • 2018-12-20
    相关资源
    最近更新 更多