# Error 302 after Configuration alert msteam in watcher elasticsearch

**URL:** <https://discuss.elastic.co/t/error-302-after-configuration-alert-msteam-in-watcher-elasticsearch/358781>\
**Category:** Elasticsearch\
**Created:** [May 6, 2024, 6:40am UTC](https://discuss.elastic.co/t/error-302-after-configuration-alert-msteam-in-watcher-elasticsearch/358781 "2024-05-06T06:40:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanhaiit90](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vanhaiit90/32/119189_2.png) [@vanhaiit90](https://discuss.elastic.co/u/vanhaiit90)\
**Post date:** [May 6, 2024, 6:40am UTC](https://discuss.elastic.co/t/error-302-after-configuration-alert-msteam-in-watcher-elasticsearch/358781/1 "2024-05-06T06:40:38Z")

</div>

hi everyone !  
Last week I have complete configure alert Microsoft Teams integration to watcher

> send\_to\_teams": {  
> "webhook": {  
> "scheme": "https",  
> "host": "[xxx.webhook.office.com](http://xxx.webhook.office.com)",  
> "port": 443,  
> "method": "post",  
> "path": "/",  
> "params": {},  
> "headers": {  
> "Content-Type": "application/json"  
> },  
> "body": """{"APM Failed Transaction Rate Alert HTTP 500" : { "Found {{ctx.payload.hits.total}}" : { "HTTP errors in the last minute {{alert.actionGroup}}{{^context.isRatio}}{{#context.group}}{{context.group}} - {{/context.group}}{{context.matchingDocuments}} log entries have matched the following conditions: {{context.conditions}}{{/context.isRatio}}{{#context.isRatio}}{{#context.group}}{{context.group}} - {{/context.group}} Ratio of the count of log entries matching {{context.numeratorConditions}} to the count of log entries matching {{context.denominatorConditions}} was {{context.ratio}}{{/context.isRatio}}" : "Service Name: {{ctx.payload.hits.hits.0.\_source.service.name}}"}}}"""  
> }  
> }

But I don't understand why it doesn't display the alert on ms team even though the email still displays the alert normally . I checked and see it display error 302. Please help solve this problem. Thank you so much.

 ![ảnh](https://us1.discourse-cdn.com/elastic/original/3X/6/9/699a774981c326af9433303c4c5e180a233e18ae.png)

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [May 9, 2024, 10:10pm UTC](https://discuss.elastic.co/t/error-302-after-configuration-alert-msteam-in-watcher-elasticsearch/358781/2 "2024-05-09T22:10:21Z")

</div>

I'm not sure I understand the question correctly. Are you asking why your watch failed (i.e., why you're getting a 302 from `xxx.webhook.office.com`)? Or are you asking why does that failed watch not show up in the watch history list?

---

<div class="post-metadata">

**Author:** ![vanhaiit90](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vanhaiit90/32/119189_2.png) [@vanhaiit90](https://discuss.elastic.co/u/vanhaiit90)\
**Post date:** [May 17, 2024, 8:48am UTC](https://discuss.elastic.co/t/error-302-after-configuration-alert-msteam-in-watcher-elasticsearch/358781/3 "2024-05-17T08:48:01Z")

</div>

Hi @Keith_Massey

Last time I suspected the elasticsearch watcher configuration for the msteam alert webhook was wrong. And I have fixed it. Thank you so much
