Filebeat 7.6 安装 Logstash 配置

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

参考:

  1. Download Filebeat
  2. Getting Started With Filebeat
  3. ELK配置FileBeat
发布了646 篇原创文章 · 获赞 179 · 访问量 115万+

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/104612595