我有一个php应用程序,允许用户指定其日志文件的位置。然后将该位置保存在数据库中。但是,我需要动态更新filebeats filebeat.yml输入路径段,并由用户在前端添加指定的位置。
我当前的filebeat.yml文件如下所示
filebeat.inputs:
- type: log
enabled: true
# Paths that should be crawled and fetched. Glob based paths.
paths:
- C:\Users\debayo\Desktop\WWWLOGs\*\*.log
the other configuration files are below
我要实现的目标是根据用户指定的目录自动更新路径。
我已经尝试使用环境变量选项,但是我没有选择在shell上运行filebeat的选项,所以我想更新filebeat.yml文件或找到某种方式来安装它。