Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
7.97k stars 1.73k forks source link

opsgenie error sending alert #2519

Open jusmitch opened 4 years ago

jusmitch commented 4 years ago

I'm getting the following error when sending opsgenie alerts.

INFO:elastalert:Error response from https://api.opsgenie.com/v2/alerts API Response: <Response [403]> ERROR:root:Error while running alert opsgenie: Error sending alert: 403 Client Error: Forbidden for url: https://api.opsgenie.com/v2/alerts

The config is pretty simple. I just specified the opsgenie_key. Email alerting works fine. Any ideas?

mastermind3043 commented 4 years ago

faced the same issue. I was using the global key from OpsGenie Settings > App Settings > Key Management. Instead using the key from OpsGenie Teams > myteam > Integration > myteam_API > Settings works.

Use logging.formatters.loggers.elastalert.level to DEBUG to see the dump of the API request