2

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

我在 beats 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

似乎不起作用

4

2 回答 2

2

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

Filebeat 参考 » 疑难解答 » 常见问题

于 2019-03-26T14:27:38.907 回答
0

它不是这样工作的。

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

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

于 2017-02-16T11:53:41.947 回答