安装
rpm -ivh filebeat-1.0.1-x86_64.rpm
chkconfig –add filebeat
chkconfig filebeat on
编辑配置文件
vi /etc/filebeat/filebeat.yml
添加要收集的日志路径
14 paths:
15 - /var/log/.log
16 - /data/logs/.log
17 - /data/logs/payment/*.log
添加要发送到logstash的服务器地址
230 logstash:
231 # The Logstash hosts
232 hosts: [“15.3.4.22:5044”]