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
,可以查看