admin管理员组

文章数量:1130349

filebeat windows安装

1.下载安装包 下载地址:https://www.elastic.co/downloads/beats/filebeat

2.打开解压后的目录,打开filebeat.yml进行配置。

​ a:配置 Filebeat prospectors->path 这里的路径是所要收集日志的路径。
​ b:配置 enabled: true 这个配置很重要,只有配置为true之后配置才可生效,否则不起作用。
​ c:配置Outputs ,这里的Outputs有elasticsearch,logstash。按照配置文件下面的示例配置即可。

# ============================== Filebeat inputs ===============================
- type: log

  # Change to true to enable this input configuration.
  enabled: true

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - D:\IdeaProjects\project\log\test.log
    
    
# ------------------------------ Logstash Output -------------------------------
output.logstash:
  # The Logstash hosts
  hosts: ["127.0.0.1:5044"]

3.通过命令行运行 Filebeat 非常简单,只需将 Filebeat 文件解压到某个目录后,通过以下命令运行:

.\filebeat -e -c filebeat.yml
filebeat windows安装

1.下载安装包 下载地址:https://www.elastic.co/downloads/beats/filebeat

2.打开解压后的目录,打开filebeat.yml进行配置。

​ a:配置 Filebeat prospectors->path 这里的路径是所要收集日志的路径。
​ b:配置 enabled: true 这个配置很重要,只有配置为true之后配置才可生效,否则不起作用。
​ c:配置Outputs ,这里的Outputs有elasticsearch,logstash。按照配置文件下面的示例配置即可。

# ============================== Filebeat inputs ===============================
- type: log

  # Change to true to enable this input configuration.
  enabled: true

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - D:\IdeaProjects\project\log\test.log
    
    
# ------------------------------ Logstash Output -------------------------------
output.logstash:
  # The Logstash hosts
  hosts: ["127.0.0.1:5044"]

3.通过命令行运行 Filebeat 非常简单,只需将 Filebeat 文件解压到某个目录后,通过以下命令运行:

.\filebeat -e -c filebeat.yml

本文标签: FileBeatWindows