# How to configure multiple slack accounts in watcher

**URL:** <https://discuss.elastic.co/t/how-to-configure-multiple-slack-accounts-in-watcher/212560>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 19, 2019, 8:59pm UTC](https://discuss.elastic.co/t/how-to-configure-multiple-slack-accounts-in-watcher/212560 "2019-12-19T20:59:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan\_alvarenga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivan_alvarenga/32/59753_2.png) [@ivan\_alvarenga](https://discuss.elastic.co/u/ivan_alvarenga)\
**Post date:** [December 19, 2019, 8:59pm UTC](https://discuss.elastic.co/t/how-to-configure-multiple-slack-accounts-in-watcher/212560/1 "2019-12-19T20:59:08Z")

</div>

I am trying to configure multiple watchers that, each one, will send a notification to a specific slack channels. I tried to configure adding to the keystore "xpack.notification.slack.account.team1.monitoring.secure\_url" and "xpack.notification.slack.account.team2.monitoring.secure\_url" but when i try to simulate a watcher i get an exception: "no account name for team1". Can someone give me a help on this? Or a hint on how to  
 configure multiple channels in the slack notification. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 20, 2019, 9:23am UTC](https://discuss.elastic.co/t/how-to-configure-multiple-slack-accounts-in-watcher/212560/2 "2019-12-20T09:23:56Z")

</div>

have you configured that setting on all nodes and either restarted them or [reloaded the secure settings](https://www.elastic.co/guide/en/elasticsearch/reference/7.5/secure-settings.html#reloadable-secure-settings)?

---

<div class="post-metadata">

**Author:** ![ivan\_alvarenga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivan_alvarenga/32/59753_2.png) [@ivan\_alvarenga](https://discuss.elastic.co/u/ivan_alvarenga)\
**Post date:** [December 20, 2019, 4:06pm UTC](https://discuss.elastic.co/t/how-to-configure-multiple-slack-accounts-in-watcher/212560/3 "2019-12-20T16:06:18Z")

</div>

I Just added both webhooks to the keystore in the security section of deployments menu in elastic cloud.  
I first tested with one slack channel and added "xpack.notification.slack.account.monitoring.secure\_url" and it worked fine for one channel, but when i tried to add this other configuration mentioned above, i get this exception.

ps: i don't know if this could affect, but i'm not using "team1" in the configuration of the secure\_url, i replace this with the name of the channel, i.e, "xpack.notification.slack.account.nameofchannel.monitoring.secure\_url".

I tried to reload the secure setting in the API console, but i had no success.

---

<div class="post-metadata">

**Author:** ![ivan\_alvarenga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivan_alvarenga/32/59753_2.png) [@ivan\_alvarenga](https://discuss.elastic.co/u/ivan_alvarenga)\
**Post date:** [December 29, 2019, 10:07pm UTC](https://discuss.elastic.co/t/how-to-configure-multiple-slack-accounts-in-watcher/212560/4 "2019-12-29T22:07:38Z")

</div>

Any help?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [January 8, 2020, 10:12am UTC](https://discuss.elastic.co/t/how-to-configure-multiple-slack-accounts-in-watcher/212560/5 "2020-01-08T10:12:46Z")

</div>

do you have any configuration for your slack accounts in the elasticsearch.yml file?

---

<div class="post-metadata">

**Author:** ![Abhimanyu\_Garg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhimanyu_garg/32/61154_2.png) [@Abhimanyu\_Garg](https://discuss.elastic.co/u/Abhimanyu_Garg)\
**Post date:** [January 21, 2020, 3:59pm UTC](https://discuss.elastic.co/t/how-to-configure-multiple-slack-accounts-in-watcher/212560/6 "2020-01-21T15:59:07Z")

</div>

Here is a detailed post on how to configure multiple spack accounts in watcher-

> **[How to send ElasticSearch watcher alerts to multiple slack channels - TechManyu](https://www.techmanyu.com/send-elasticsearch-watcher-alerts-to-multiple-slack-channels/)**
>
> Watcher is an Elasticsearch feature that you can use to create actions based on conditions, which are periodically evaluated using queries on your data

Hope this helps.

---

<div class="post-metadata">

**Author:** ![ivan\_alvarenga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivan_alvarenga/32/59753_2.png) [@ivan\_alvarenga](https://discuss.elastic.co/u/ivan_alvarenga)\
**Post date:** [January 23, 2020, 5:04pm UTC](https://discuss.elastic.co/t/how-to-configure-multiple-slack-accounts-in-watcher/212560/7 "2020-01-23T17:04:22Z")

</div>

@spinscale i was having a problem with my cluster, and i already contacted the support, thank you for your time.

@Abhimanyu_Garg thank you for the article, it's very good.

---

<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:** [February 20, 2020, 5:04pm UTC](https://discuss.elastic.co/t/how-to-configure-multiple-slack-accounts-in-watcher/212560/8 "2020-02-20T17:04:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
