Filebeat日志收集器 安装和配置

来源:互联网 发布:90后网络女歌手有哪些 编辑:程序博客网 时间:2024/05/30 04:47

下载:https://www.elastic.co/downloads/beats/filebeat


配置Filebeat

编辑filebeat.yml

修改监控日志配置

filebeat:   prospectors:  -      paths:        - /var/log/*.log      input_type: log 

把elasticsearch的其下的所有都注释掉,开启logstash,并转hosts


output:  #elasticsearch:  #   hosts: ["localhost:9200"]

logstash:    hosts: ["10.1.5.65:5044"]

启动

./filebeat -e -c filebeat.yml >/dev/null 2>&1 &


停止

ps -ef|grep filebeat

kill -9 id

原创粉丝点击