Filebeat 7.6 安装
1,Filebeat 7.6 安装
# wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.6.0-amd64.deb
# dpkg -i filebeat-7.6.0-amd64.deb
2,Filebeat 配置
vim /etc/filebeat/filebeat.yml
filebeat.inputs:
- type: log
enabled: true
paths:
- /storage/*.log
output.logstash:
hosts: ["localhost:5044"]
3,Logstash配置
# cp /etc/logstash/logstash-sample.conf /etc/logstash/conf.d/filebeat.conf
- 测试配置
# logstash --path.settings /etc/logstash/ -t
Configuration OK
参考: