我有linux托管的应用程序,其中有日志,我想使用文件节拍来收获它们。如何在filebeat.yml文件中给出输入路径?
发布于 2020-10-08 20:15:51
假设您已经在linux系统上安装了filebeat。您可以将filebeat配置为使用日志输入,并将路径指向日志所在的位置。检查this。
简单的例子:
filebeat.inputs:
- type: log
enabled: true
paths:
- /usr/share/apps/logs/*.log
output.elasticsearch:
hosts: '${ELASTICSEARCH_HOSTS}'https://stackoverflow.com/questions/64256443
复制相似问题