简体   繁体   English

需要为 Cloudwatch 日志组添加标签

[英]Need to add Tags for Cloudwatch log groups

In our Project, there are 1000's of CloudWatch Log groups.在我们的项目中,有 1000 个 CloudWatch 日志组。 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?有没有办法一次为所有日志组添加标签?

tag-log-group allows you to add tag to one log group at a time. tag-log-group允许您一次将标签添加到一个日志组。 There is no batch api that allows you to do it in one go for multiple log groups.没有批次 api 允许您在一个 go 中为多个日志组执行此操作。 If you are using aws cli or sdk , it should be easy enough to retrieve describe-log-groups and run execute tag-log-group .如果您使用的是aws clisdk ,检索describe-log-groups并运行 execute tag-log-group应该很容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM