filebeat安装配置官网
- 直接从官网下载到本地
- 配置filebeat.yml文件
最基础配置,更多详细配置,根据实际情况而定
- type: log
# 将false改成ture,否则filebeat不生效
enabled: true
# 上传到es的log文件路径
paths:
- /Users/sunhan/Workspace/study/good-spring-boot/target/good/log/*.log
## 输出到es
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["http://192.168.43.110:9200","http://192.168.43.120:9200","http://192.168.43.130:9200"]
- 如果一切顺利,则打开
http://192.168.43.110:5601,可以查看


本文详细介绍如何从官网下载并配置Filebeat进行日志收集,包括基础配置项、log文件路径指定及输出到Elasticsearch的设置。通过具体示例,帮助读者快速上手Filebeat配置。
1052

被折叠的 条评论
为什么被折叠?



