查询DEV工具中的DSL,从内部警报返回不同的结果

发布于 2025-02-12 17:02:08 字数 541 浏览 0 评论 0原文

我有一个索引,我提出了一些数据。所有这些数据都在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:

enter image description here

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:

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文