AWS Cloudwatch Alerts are not send to OpsGenie
Asked by Jessie Gouw:

AWS Cloudwatch is setup with OpsGenie, I received the informational alert already and I setup notifications for all the alerts in different states (OK, INSUFFICIENT DATA, ALARM) connected to the Opsgenie sns topic I made. The connection has been established succesfully.  

**The problem is, that somehow alerts are still not being sent to opsgenie.
(Yes I changed thresholds to trigger alerts)**

Thank you in advance for replying!


Answers:
author: Jessie Gouw
body: **SOLUTION:**   
The issue has been resolved, encryption was enabled which caused an AccessDenied error because the KMS key had inproper rights. It can be mitigated by editing the access policy of the topic or by disabling encryption of the topic.


author: Nick H
body: Hi [@Jessie Gouw](/t5/user/viewprofilepage/user-id/4384454) ,

That's *strange*if test / confirmation was successful, and the actual CloudWatch events are not creating Opsgenie alerts.

Can you check if there are any logs or errors under the Settings tab \>\> Logs tab??

This *sounds* like your SNS subscription may also have the Enable Raw Message Delivery checkbox selected - when I believe it should be unchecked:

![awscomm1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/142561i5D128E94CB7BDE88/image-size/large?v=v2&px=999 "awscomm1.jpg")

\^ So if that's the case, and there are logs / errors in Opsgenie, there might not be any data parsing in the payload of these requests.

Let us know if this helps! Or if you run into other questions, issues, etc.

comments: author: Jessie Gouw
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930) Thanks for the reply! The raw message checkbox is currently unchecked already. These are the last logs I received

<br />

![Screenshot 2021-05-07 at 16.39.07.png](https://community.atlassian.com/t5/image/serverpage/image-id/142566iA7B18CAA02CAC3A1/image-size/large?v=v2&px=999 "Screenshot 2021-05-07 at 16.39.07.png")


author: Nick H
body: Ok - thanks for checking all that.

That log does not look related to the CloudWatch integration. Can you search the logs for the integration name with something like this:

![awscomm2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/142567i68D94367A3C86E80/image-size/large?v=v2&px=999 "awscomm2.jpg")

If the connection is made successfully - which is sounds like it has been - Opsgenie would still record error logs.


author: Jessie Gouw
body: See the most recent logs in my earlier reply (I edited it afterwards sorry)


author: Nick H
body: I also edited mine ?

Try checking for "cloudwatch" logs vs. all of the logs in your account. Then adjust the time range as well if possible!


author: Jessie Gouw
body: Could this be the source? I used your key words!

![Screenshot 2021-05-07 at 16.46.50.png](https://community.atlassian.com/t5/image/serverpage/image-id/142570i4B31AA9B63BE660F/image-size/large?v=v2&px=999 "Screenshot 2021-05-07 at 16.46.50.png")


author: Nick H
body: That log seems unrelated. If possible, can you open a ticket with Opsgenie support here: <https://support.atlassian.com/opsgenie/>

It might be easier if our team can access the logs and take a look at your account! I'll look for that ticket.


author: Jessie Gouw
body: The support ticket number is: [OGSP-67183](https://getsupport.atlassian.com/servicedesk/customer/portal/45/OGSP-67183)

[@Nick H](/t5/user/viewprofilepage/user-id/2540930)Thank you so much for efforts!


Tags: alert

cloud

cloudwatch