Elasticsearch Watcher动作日志存储的索引名称是什么?
Watcher日志存储索引说明
Watcher的logging动作日志默认存在**.watcher-history-***系列索引中,这类索引是按日期滚动生成的(例如.watcher-history-2024.05.20)。
几个关键点:
- 若未修改过Watcher的日志存储配置,直接查找该前缀的索引即可
- 在Kibana的Discover面板中,选择对应日期的
.watcher-history-*索引,通过action.type: logging筛选,就能找到你配置的my-logging-action相关日志 - 如果自定义过Watcher历史存储的配置,日志会存在你指定的索引里,需要检查
xpack.watcher.history.index.name配置项
你的Watcher动作配置:
"actions": { "my-logging-action": { "logging": { "level": "warn", "text": "my-logging-action There has been no {{ctx.metadata.title}} request in the last {{ctx.metadata.interval_text}}." } } }
内容的提问来源于stack exchange,提问作者Kaan H
相关产品推荐
相关产品推荐

