Filebeat是一个开源的文件收集器,主要用于获取日志文件,并把它们发送到logstash或elasticsearch。与libbeat lumberjack一起替代logstash-forwarder。
在logstash-forwarder项目上,看到下面一些信息“The filebeat project replaces logstash-forwarder. Please use that instead.No further development will occur on this project. Major bug fixes or security fixes may be worked on through 2016, at which point this repository and its project will be abandoned.The replacement is filebeat which receives new features and fixes frequently.”
说明了啥?简单而言logstash-forwarder寿终正寝了,将由filebeat替代了。
《ELK部署指南》是用logstash-forwarder来收集日志的,当时刚刚研究ELK,没有细读文档,凭借之前的了解来研究的。后面将logstash-forwarder换成filebeat,请关注。
filebeat最初是基于logstash-forwarder源码的日志数据shipper。Filebeat安装在服务器上作为代理来监视日志目录或特定的日志文件,要么将日志转发到Logstash进行解析,要么直接发送到Elasticsearch进行索引。
Filebeat>
deb: