我想将自定义的CloudWatch指标命名空间过滤事件发送到s3存储桶以监视特定事件。我有来自cloudTrail的数据,正在通过自定义名称空间中的指标过滤我想要的日志。
我已经研究过创建cloudWatch订阅,这将使我可以按诸如eventName之类的特定选项进行过滤。我不确定这是否是唯一的选择。
这是AWS过滤订阅设置,我在cloudWatch中通过指定{$ .userIdentity.type = Root}并设置了其他过滤器来进行了类似的过滤。所以我想如果我需要进行订阅的话,我会做多个--filter-pattern {$ .userIdentity.type = Root} /行
aws logs put-subscription-filter \
--log-group-name "CloudTrail" \
--filter-name "RecipientStream" \
--filter-pattern "{$.userIdentity.type = Root}" \
--destination-arn "arn:aws:logs:region:999999999999:destination:testDestination"
我有一个cloudWatch日志,它正在提取我的cloudTrail日志并通过指标对其进行过滤。我想将这些结果发送到一个S3存储桶,该存储桶用于存储来自度量标准名称空间的过滤日志。这可能吗?还是需要使用订阅配置?