入门开始,从官网下载及测试demo。只有实践才是真开始,动手起来吧
下载地址:https://www.elastic.co/cn/downloads/beats/filebeat
帮助文档:https://www.elastic.co/guide/en/beats/filebeat/current/configuring-howto-filebeat.html
使用原因:比logstash使用起来轻量,简单点。但是肯定没有logstash功能强大,建议最好结合logstash。
详细输出控制台脚本:
filebeat.inputs:
- type: log
enabled: true
paths:
- E:/20210223/*.log
setup.template.enabled: false
setup.ilm.enabled: false
output.console:
pretty: true
注意:目录遍历不能太多级,建议类似以上级别模糊目录就行了
启动命令:filebeat.exe -e -c filebeat-console.yml
本环境是windows7