采集节点主要安装Filebeat组件即可,Filebeat可以很简单运行在Windows/Linux操作系统上,不需要其余环境。

  1. 下载Filebeat压缩包: https://www.elastic.co/downloads/past-releases/filebeat-6-2-4 根据操作系统选择对应的版本下载
  2. 解压
  3. 修改目录下filebeat.yml文件,具体配置下图: 111.png 上图为filebeat的输入端配置,指定监听文件 222.png 上图为filebeat的输出端配置,指定输出到本机的Logstash中
  4. Filebeat启动(cd $FILEBEAT_HOME): ./filebeat -e -c filebeat.yml 后台启动可使用nohup命令 nohup ./filebeat -e -c filebeat.yml -d "publish" >logs/filebeat.log 2>&1 &