Riyas
Riyas

Reputation: 327

Log for Successful deliveries are not listed in CloudWatchLog

Integrated AWS-SNS for sending SMS. Configured the Text message preference as per the AWS Document

I am able to view the CloudWatchLog for failed deliveries as per the below image. But I am not able to view the log for successful deliveries. Where I can view the log for Successful deliveries? enter image description here

Any help is appreciated

Upvotes: 2

Views: 1697

Answers (1)

CHB
CHB

Reputation: 51

In SNS, under "Manage text messaging preferences", check the value of "Default percentage of success to sample". If it is set to 0, that will cause only Failures to go to CloudWatch. Set it to 100 if you'd like all successes to be logged.

Per AWS's Viewing Amazon CloudWatch Metrics and Logs for SMS Deliveries document:

For Default percentage of success to sample, specify the percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. For example, to write logs only for failed deliveries, set this value to 0. To write logs for 10% of your successful deliveries, set it to 10. If you don't specify a percentage, Amazon SNS writes logs for all successful deliveries.

Upvotes: 2

Related Questions