# How to use watcher to send the alert using teams connector

**URL:** <https://discuss.elastic.co/t/how-to-use-watcher-to-send-the-alert-using-teams-connector/286771>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [October 14, 2021, 7:24pm UTC](https://discuss.elastic.co/t/how-to-use-watcher-to-send-the-alert-using-teams-connector/286771 "2021-10-14T19:24:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patr123](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Patr123](https://discuss.elastic.co/u/Patr123)\
**Post date:** [October 14, 2021, 7:24pm UTC](https://discuss.elastic.co/t/how-to-use-watcher-to-send-the-alert-using-teams-connector/286771/1 "2021-10-14T19:24:11Z")

</div>

Hello,

I have a watcher which is working as expected if I use the email action in it. I need to know how can I use that watcher to send the alerts using the teams connector that I created in alerts and actions tab.

Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 18, 2021, 12:52am UTC](https://discuss.elastic.co/t/how-to-use-watcher-to-send-the-alert-using-teams-connector/286771/2 "2021-10-18T00:52:25Z")

</div>

You can if you have the correct license for that. [Elastic Support Matrix | Elasticsearch](https://www.elastic.co/support/matrix) covers that.

---

<div class="post-metadata">

**Author:** ![Patr123](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Patr123](https://discuss.elastic.co/u/Patr123)\
**Post date:** [October 18, 2021, 3:04am UTC](https://discuss.elastic.co/t/how-to-use-watcher-to-send-the-alert-using-teams-connector/286771/3 "2021-10-18T03:04:28Z")

</div>

Thank you warkolm. But I am not sure what am I supposed to look for in the link you provided. I have the platinum license for elastic stack if that helps.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 18, 2021, 3:15am UTC](https://discuss.elastic.co/t/how-to-use-watcher-to-send-the-alert-using-teams-connector/286771/4 "2021-10-18T03:15:58Z")

</div>

Then you should definitely reach out to your Support team to get assistance with this. We're happy to help, but support is included in that license level :0

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 18, 2021, 3:26am UTC](https://discuss.elastic.co/t/how-to-use-watcher-to-send-the-alert-using-teams-connector/286771/5 "2021-10-18T03:26:34Z")

</div>

@Patr123

I think there could be a bit of a disconnect.

I don't think watcher supports Teams you can see the connectors [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/actions.html#actions).

Although you could probably create a custom webhook to work with teams.

The new Teams connector is to be used with the Kibana alerting framework [here](https://www.elastic.co/guide/en/kibana/current/alerting-getting-started.html)

Teams connector [here](https://www.elastic.co/guide/en/kibana/7.15/teams-action-type.html#teams-action-type)

And some differences between Kibana alerting and watcher [here](https://www.elastic.co/guide/en/kibana/current/alerting-getting-started.html#alerting-concepts-differences)

I also agree you should reach out to support because you have that as part of your license.

---

<div class="post-metadata">

**Author:** ![Patr123](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Patr123](https://discuss.elastic.co/u/Patr123)\
**Post date:** [October 19, 2021, 5:56pm UTC](https://discuss.elastic.co/t/how-to-use-watcher-to-send-the-alert-using-teams-connector/286771/6 "2021-10-19T17:56:13Z")

</div>

Hello,  
I was able to configure this. When I do the simulation I get the expected result but when I am trying to execute it I am getting the below error:

```auto
"status": "failure",
        "error": {
          "root_cause": [
            {
              "type": "s_s_l_handshake_exception",
              "reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
            }
          ],
          "type": "s_s_l_handshake_exception",
          "reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",
          "caused_by": {
            "type": "validator_exception",
            "reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",
            "caused_by": {
              "type": "sun_cert_path_builder_exception",
              "reason": "unable to find valid certification path to requested target"
            }
          }
        }

```

I know I need to play with

```auto
xpack.security.transport.ssl.verification_mode: ""

```

Setting, but don't know what needs to go there.

---

<div class="post-metadata">

**Author:** ![Iker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iker/32/91708_2.png) [@Iker](https://discuss.elastic.co/u/Iker)\
**Post date:** [October 19, 2021, 6:19pm UTC](https://discuss.elastic.co/t/how-to-use-watcher-to-send-the-alert-using-teams-connector/286771/7 "2021-10-19T18:19:29Z")

</div>

Probably this could help you:

> **[Watcher settings in Elasticsearch | Elasticsearch Guide \[7.15\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference//current/notification-settings.html)**

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 4, 2022, 8:32am UTC](https://discuss.elastic.co/t/how-to-use-watcher-to-send-the-alert-using-teams-connector/286771/8 "2022-11-04T08:32:41Z")

</div>


