ELK + F 建構
Elasticsearch + Logstash + Kibana + FileBeat 四個組件的組合
啟動辦法:
各項設定:
name: localhost
output:
logstash:
enabled: true
hosts:
- localhost:5044
index: "localhost"
filebeat.inputs:
- type: log
paths:
- /Users/xxxxx/Desktop/log/xxxSystem/xxx.log
multiline:
pattern: '^\['
negate: true
match: after
tags: ["restapi"]
#開啟debug模式
logging.level: debug
logging.selectors: [publish]
logging.to_files: true
logging.files:
name: filebeat-localhost
查看結果:

參考網站:
Last updated