0
我想为多个IIS应用程序的IIS日志配置filebeat。 IIS日志存储在每个应用程序的单独文件夹中。多个IIS应用程序日志配置(多个filebeat.prospectors)
我实现的主要目标,是拥有独立的一组标签字段为每个应用程序日志
所以我加了两个勘探者配置这样的:
filebeat.prospectors:
- input_type: log
paths:
- c:\inetpub\logs\LogFiles\W3SVC2\*.log
document_type: iis_log
tags: ["firstAPP", "serverName"]
fields:
env: production
- input_type: log
paths:
- c:\inetpub\logs\LogFiles\W3SVC3\*.log
document_type: iis_log
tags: ["secondAPP", "serverName", "API"]
fields:
env: production
不幸的是事情是不对的配置,因为filebeat不会启动。
当我只对一个日志路径使用配置时,一切正常。
根据此示例:https://www.elastic.co/guide/en/beats/filebeat/current/multiple-prospectors.html,可以配置多个filebeat.prospectors。但我不确定是否可以添加多个标签。