按照filebeat windows客户端

1)下载安装包
http://download.zhufunin.com/filebeat-7.2.0-windows-x86_64.zip
2)解压到以下目录: C:Program Files
3)重命名 filebeat-<version>-windows 为 filebeat
4)以 管理员 身份运行 PowerShell
5)在 PowerShell 中运行以下命令:

cd 'C:Program FilesFilebeat'
PowerShell.exe -ExecutionPolicy UnRestricted -File .install-service-filebeat.ps1

6) 修改filebeat.yml文件

7) 运行service.msc
启动filebeat

以下是范例filebeat.yml的内容

filebeat.inputs:
- type: log
  tail_files: true
  backoff: "1s"
  paths:
      - C:inetpublogsLogFiles**.log
  fields:
    type: apps2access
  fields_under_root: true

output:
  redis:
   hosts: ["13.75.1.1:5379"]
   password: "passworddd!"
   key: 'access'
原文地址:https://www.cnblogs.com/faberbeta/p/13033150.html