Logstash Filebeat-从远程目录读取
是否可以将文件beat设置为从远程目录读取(因为我无法在该计算机上安装该进程) 我在beats yml上这样设置:Logstash Filebeat-从远程目录读取,logstash,filebeat,Logstash,Filebeat,是否可以将文件beat设置为从远程目录读取(因为我无法在该计算机上安装该进程) 我在beats yml上这样设置: filebeat: # List of prospectors to fetch data. prospectors: # Each - is a prospector. Below are the prospector specific configurations - paths: - \\remotemachine\remo
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
似乎不起作用不是这样的 建议在远程服务器/目录上安装Filebeat。不支持使用共享文件夹 典型的设置是在中心位置(一台或多台服务器)安装Logstash+Elasticsearch+Kibana,并在从中收集数据的远程计算机上安装Filebeat 我们不建议从网络卷读取日志文件。无论何时 可能的话,在主机上安装Filebeat并发送日志文件 直接从那里开始。从网络卷读取文件(尤其是在 Windows)可能会产生意外的副作用。例如,已更改的文件 标识符可能导致Filebeat从头开始读取日志文件 再说一遍