CloudWatch日志仅在工作日获得见解

发布于 2025-01-27 11:41:47 字数 285 浏览 3 评论 0原文

我需要在一周中的几天(例如:星期五,星期六,周日和星期一)获得CloudWatch Log Insights的现货终止。在过去的三个月中,我需要获得见解,可以通过UI选择整个日期范围,但是我需要在几天之上过滤。任何帮助将不胜感激。

当前查询几天没有过滤器。

filter @message like /terminate/
| stats count(*) as exceptionCount by bin(24h) as binh
| sort binh desc

提前致谢。

I need to get cloudwatch log insights for spot terminations on only few days of the week (ex: Friday, saturday, sunday and monday). For last 3 months, I need to get the insights, entire date range can be selected through UI, but I need to filter above few days. Any help would be appreciated.

Current query without the filter for days.

filter @message like /terminate/
| stats count(*) as exceptionCount by bin(24h) as binh
| sort binh desc

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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