如何仅在CloudWatch输出中显示唯一的行?
我有一个CloudWatch查询,该查询创建了一个看起来像类似的输出表:
id | name | age
1313 | Sam | 24
1313 | Sam | 24
1313 | Sam | 24
1481 | David | 62
1481 | David | 62
3748 | Sarah | 37
3748 | Sarah | 37
3748 | Sarah | 37
1481 | David | 62
是否有一种使CloudWatch自动重复其输出的方法,因此我只看到:
id | name | age
1313 | Sam | 24
1481 | David | 62
3748 | Sarah | 37
I have a CloudWatch query that creates a table of output that looks something like:
id | name | age
1313 | Sam | 24
1313 | Sam | 24
1313 | Sam | 24
1481 | David | 62
1481 | David | 62
3748 | Sarah | 37
3748 | Sarah | 37
3748 | Sarah | 37
1481 | David | 62
Is there a way to have CloudWatch automatically deduplicate its output, so I just see:
id | name | age
1313 | Sam | 24
1481 | David | 62
3748 | Sarah | 37
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在这三个字段上计算一个汇总值,然后将其放置(仅保留这3个)。例如:
You can calculate an aggregated value across these 3 fields and then drop it (keep just these 3). Like this for example:
我假设 dedupe 两年前不存在2年前,但是现在您可以这样做:
给定的文档示例
I assume dedupe didn't exist 2 years ago, but now you can do this:
Given documentation example