我已经为使用Filebeat的集中式日志记录系统配置了ELK-stack (Elasticsearch、Logstash和Kibana)集群。现在,我被要求使用Filebeat重新配置为EFK (Elasticsearch、FluentD和Kibana)。我已经禁用了Logstash并安装了FluentD,但是我不能使用Filebeat配置FluentD。我已经为文件节拍安装了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>发布于 2021-01-26 05:11:52
在fluentd中,source是一个输入,而不是输出,您可能希望与对应的fluentd标记匹配,以便将其发送到filebeats,然后输出到Elastic。
https://stackoverflow.com/questions/46335580
复制相似问题