Filebeat - 从远程目录读取

问题描述 投票:1回答:2

是否可以将文件节拍设置为从远程目录中读取(因为我无法在该计算机上安装该进程)

我已经在节拍yml上设置了它:

filebeat:
  # List of prospectors to fetch data.
  prospectors:
    # Each - is a prospector. Below are the prospector specific configurations
    -
      paths:
        - \\remotemachine\remotedir\*\*.log
      input_type: log
      document_type: RemoteLogs

似乎没有用

logstash filebeat
2个回答
0
投票

它不像这样工作。

建议在远程服务器/目录上安装Filebeat。不支持使用共享文件夹!

典型的设置是在中央位置(一个或多个服务器)安装Logstash + Elasticsearch + Kibana,并在远程计算机上安装Filebeat,从中收集数据。


0
投票

我们不建议从网络卷读取日志文件。只要有可能,在主机上安装Filebeat并直接从那里发送日志文件。从网络卷(尤其是在Windows上)读取文件可能会产生意外的副作用。例如,更改的文件标识符可能导致Filebeat再次从头开始读取日志文件。

Filebeat Reference » Troubleshooting » Frequently asked questions

© www.soinside.com 2019 - 2024. All rights reserved.