问题描述
尝试将云监视日志放入 kinese firehose.
Trying to put cloud watch logs into kineses firehose.
如下:https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html#FirehoseExample
遇到这个错误
调用 PutSubscriptionFilter 操作时发生错误 (InvalidParameterException):无法将测试消息传送到指定的 Firehose 流.检查是否 t给定的 Firehose 流处于 ACTIVE 状态.
An error occurred (InvalidParameterException) when calling the PutSubscriptionFilter operation: Could not deliver test message to specified Firehose stream. Check if te given Firehose stream is in ACTIVE state.
aws 日志 put-subscription-filter --log-group-name "xxxx" --filter-name "xxx" --filter-pattern "{$.httpMethod = GET}" --destination-arn "arn:aws:firehose:us-east-1:12345567:deliverystream/xxxxx" --role-arn "arn:aws:iam::12344566:role/xxxxx"
aws logs put-subscription-filter --log-group-name "xxxx" --filter-name "xxx" --filter-pattern "{$.httpMethod = GET}" --destination-arn "arn:aws:firehose:us-east-1:12345567:deliverystream/xxxxx" --role-arn "arn:aws:iam::12344566:role/xxxxx"
推荐答案
导致此错误的最可能的问题是权限问题.即您传递给 --role-arn
的 IAM 角色的定义有问题.您可能需要仔细检查角色及其权限是否按照文档中的描述正确设置.
The most likely problem that causes this error is a permissions issue. i.e. something wrong in the definition of the IAM role you passed to --role-arn
. You may want to double check that the role and its permissions were set up properly as described in the doc.
这篇关于调用 PutSubscriptionFilter 操作时发生错误 (InvalidParameterException)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!