文件Beat无法从特定文件夹发送日志,这是应用程序日志文件夹。
已经尝试过的东西:
运行配置:
filebeat.inputs:
- type: log
paths:
- /var/log/containers/*.log
fields_under_root: true
output.kafka:
hosts: ["10.0.0.0:9092"]
topic: "testtopic"
codec.json:
pretty: true
有了这个,我可以看到“ testtopic”中的所有日志
未运行配置:
filebeat.inputs:
- type: log
paths:
- /app/log/server/*.log
fields_under_root: true
output.kafka:
hosts: ["10.0.0.0:9092"]
topic: "testtopic"
codec.json:
pretty: true
预期结果:/app/log/server/*.log路径中的日志应发送到Kafka