需要为Cloudwatch日志组添加标签
在我们的项目中,有 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
tag-log-group
允许您一次向一个日志组添加标签。没有批处理 api 允许您一次性对多个日志组执行此操作。如果您使用
aws cli
或sdk
,则应该很容易检索 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 usingaws cli
orsdk
, it should be easy enough to retrieve describe-log-groups and run executetag-log-group
.