需要为Cloudwatch日志组添加标签

发布于 2025-01-13 11:44:31 字数 78 浏览 4 评论 0原文

在我们的项目中,有 1000 个 CloudWatch Log 组。我需要为所有日志组添加标签。 有没有一种方法可以一次为所有日志组添加标签?

In our Project, there are 1000's of CloudWatch Log groups. I need to add tags for all log groups.
is there a way that I can add tags for all log groups at a time?

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

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

发布评论

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

评论(1

2025-01-20 11:44:31

tag-log-group允许您一次向一个日志组添加标签。没有批处理 api 允许您一次性对多个日志组执行此操作。如果您使用 aws clisdk,则应该很容易检索 describe-log-groups 并运行执行 tag-log-group

tag-log-group allows you to add tag to one log group at a time. There is no batch api that allows you to do it in one go for multiple log groups. If you are using aws cli or sdk, it should be easy enough to retrieve describe-log-groups and run execute tag-log-group.

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