AWS CloudWatch Insight显示没有数据

发布于 2025-02-04 03:54:13 字数 568 浏览 5 评论 0原文

我想构建一个记录仪表板,以监视AWS EC2中的应用程序。因此,我配置了CloudWatch的内容,一切看起来都像魅力。但是,当我转到CloudWatch Logs Insights并为日志创建查询时,我会在我使用的每个查询/时间范围内获取“找不到数据”。

当我单击它时,我可以看到流中有一些日志(在日志面板中),但无法从洞察力中发现。

我在做什么错?

”这是没有数据的Querry

也许有人可以帮助我,非常感谢

I want to build a Logging Dashboard to monitor a application in AWS EC2. So I configure the cloudwatch stuff and everything looks like a charm. But when I go to the cloudwatch logs insights and create a query for the logs, I'm getting 'no data found' for every query/time range I'm using.

I can see there are some logs in the stream when I click on it (in the logs panel) but it cannot discover from insights.

What I'm doing wrong?

This is in the group logs window

This is the querry with no data

Maybe someone could help me, thanks a lot

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

罗罗贝儿 2025-02-11 03:54:13

尝试将查询更改为:

fields @logStream, @message | limit 20

并将时间范围扩展为4周,确保在该时间范围内包含日志事件的日志流。

例如:

“在此处输入图像描述”

Try changing the query to:

fields @logStream, @message | limit 20

And expand the time frame to, say, 4 weeks, making sure there are log streams within that time frame that contain log events.

For example:

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文