调用PutSubscriptionFilter操作时发生错误(InvalidParameterException) [英] An error occurred (InvalidParameterException) when calling the PutSubscriptionFilter operation

查看:79
本文介绍了调用PutSubscriptionFilter操作时发生错误(InvalidParameterException)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图将云监视日志放入kineses firehose.

Trying to put cloud watch logs into kineses firehose.

以下为: https://docs.aws.amazon.com/AmazonCloudWatch/Latest/logs/SubscriptionFilters.html#FirehoseExample

收到此错误

调用PutSubscriptionFilter操作时发生错误(InvalidParameterException):无法将测试消息传递到指定的Firehose流.检查是否给定的Firehose流处于活动状态.

An error occurred (InvalidParameterException) when calling the PutSubscriptionFilter operation: Could not deliver test message to specified Firehose stream. Check if t e 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"

推荐答案

当我完成您提到的教程时,它默认使用其他区域,因此我必须将-region 传递给我的区域.直到我用正确的区域完成整个步骤为止.

When I did the tutorial you mentioned, it was defaulting to a different region so I had to pass --region with my region. It wasn't until I did the entire steps with the correct region that it worked.

这篇关于调用PutSubscriptionFilter操作时发生错误(InvalidParameterException)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆