我已经在我的 Windows 系统上安装了 MetricBeat。并开始了它。在配置 metricbeats.yml 我设置了 elasticsearch 属性如下
output.elasticsearch:
_ # Array of hosts to connect to._
_ hosts: [“10.193.164.145:9200”]_
_ template.name: “metricbeat”_
_ template.path: “metricbeat.template.json”_
_ template.overwrite: false_
现在,当我启动 MetricBeat 时,我在日志中反复收到此消息
Can not index event (status=400): "MapperParsingException[mapping [default]]; nested: MapperParsingException[No handler for type [keyword] declared on field [hostname]]; "
这里有什么问题?
是因为兼容性吗?我的 ElasticSearch 版本是 1.4.x 而 MetricBeats 是 5.5.x
请务必让我知道。