0

ElastAlert 更新与 elasticsearch 中 elastalert_status 索引中的规则相关的元数据。该索引中可用的字段具有以下字段:

alert_info
alert_time
endtime
exponent
hits
matches
message
rule_type
traceback
until

另外一些存储 match_body 的字段。但是对于 kibana 显示的每个子字段,match_body 字段 所有这些字段似乎都源自 query_key,但由于没有映射字段,因此在 kibana 可视化中无法访问它们

(错误no catched mapping for these fields. Refresh fields' list from the management > Index Patterns page:),刷新没有帮助。我尝试使用include指令(在规则文件中)添加我需要的字段,但没有成功。有没有人有任何解决方案来获取 elastalert_status 索引中的特定字段?可用于可视化。没有尝试过,但将logstash 作为 elastalert 的输出将有助于根据消息的内容添加字段,但不确定它是否可以使用。无论如何,这不是最好的解决方案。

ELK 堆栈 5.1.2 版本

4

1 回答 1

0

将 create_index.py 中的代码更改为 'match_body' : {'enabled': False to True.... 在 elasticsearch elastalert_status 索引中创建相应的映射。

于 2017-05-17T11:50:47.823 回答