查询DEV工具中的DSL,从内部警报返回不同的结果
我有一个索引,我提出了一些数据。所有这些数据都在5天以上。当我查询此索引时,我会得到1373结果的预期数:
现在,我想设置一个警报在此索引上。当此查询的结果数超过阈值时,我想触发警报。但是,当我将此查询粘贴到基于弹性的警报中时,我会得到不同的查询结果:
我的问题:为什么会发生这种情况,以及如何使警报中的查询返回与查询DSL窗口中相同的数量?
I have an index that I put in some data. All this data is younger than 5 days. When I query this index, I get the expected number of 1373 results:
Now, I want to set an alert on this index. When the number of results for this query exceeds a threshold, I want to trigger an alarm. However, when I paste this query into an Elastic-query based alert, I get different query results:
My question: why is this happening, and how to I make the query in the alert return the same amount as in the Query DSL window?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论