【发布时间】:2017-12-23 02:35:17
【问题描述】:
我目前使用的是 ELK 5.5。看来 document_type 现在在 Filebeats 中已被弃用,但我无法在任何地方找到任何关于如何实现相同的示例。
这是我在日志中得到的:
WARN DEPRECATED: document_type is deprecated. Use fields instead.
这是我当前的 filebeat 配置:
- input_type: log
# Paths that should be crawled and fetched. Glob based paths.
paths:
- C:\inetpub\logs\LogFiles\*\*
document_type: iislog
paths:
- C:\MyApp\logs\*
document_type: applog
有人可以告诉我如何在使用相同的 5.5 版时重写我的日志并摆脱此弃用消息。顺便说一句,我确实想对两种“文档类型”使用相同的 ES 索引。
【问题讨论】: