# Watcher: \[illegal\_argument\_exception\] no accounts of type \[slack\] configured. Please set up an account using the \[xpack.notification.slack\] settings

**URL:** <https://discuss.elastic.co/t/watcher-illegal-argument-exception-no-accounts-of-type-slack-configured-please-set-up-an-account-using-the-xpack-notification-slack-settings/116307>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [January 19, 2018, 9:28pm UTC](https://discuss.elastic.co/t/watcher-illegal-argument-exception-no-accounts-of-type-slack-configured-please-set-up-an-account-using-the-xpack-notification-slack-settings/116307 "2018-01-19T21:28:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [January 19, 2018, 9:28pm UTC](https://discuss.elastic.co/t/watcher-illegal-argument-exception-no-accounts-of-type-slack-configured-please-set-up-an-account-using-the-xpack-notification-slack-settings/116307/1 "2018-01-19T21:28:58Z")

</div>

I'm trying to follow: [Slack Action | X-Pack for the Elastic Stack [6.1] | Elastic](https://www.elastic.co/guide/en/x-pack/current/actions-slack.html#configuring-slack), yet getting following message:

> Watcher: [illegal\_argument\_exception] no accounts of type [slack] configured. Please set up an account using the [xpack.notification.slack] settings

here is my _xpack.notification_ namespace settings:

```
xpack.notification.slack:
      account:
        monitoring:
          url: https://hooks.slack.com/services/X/Y/Z

```

Please advise.

P.S. (X/Y/Z in _url_ above, is my own parameters)

---

<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 19, 2018, 11:07pm UTC](https://discuss.elastic.co/t/watcher-illegal-argument-exception-no-accounts-of-type-slack-configured-please-set-up-an-account-using-the-xpack-notification-slack-settings/116307/2 "2018-01-19T23:07:13Z")

</div>

have you set this in the `elasticsearch.yml` on all of your nodes in your cluster or just one?

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [January 20, 2018, 1:40am UTC](https://discuss.elastic.co/t/watcher-illegal-argument-exception-no-accounts-of-type-slack-configured-please-set-up-an-account-using-the-xpack-notification-slack-settings/116307/3 "2018-01-20T01:40:13Z")

</div>

@spinscale I set this across all nodes in cluster - is there a way to check that somehow?

---

<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 20, 2018, 10:56am UTC](https://discuss.elastic.co/t/watcher-illegal-argument-exception-no-accounts-of-type-slack-configured-please-set-up-an-account-using-the-xpack-notification-slack-settings/116307/4 "2018-01-20T10:56:42Z")

</div>

did you restart all your nodes? You can run

```auto
GET _nodes?filter_path=**.settings.xpack.notification

```

to check if all your nodes have those settings applied.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [January 20, 2018, 3:58pm UTC](https://discuss.elastic.co/t/watcher-illegal-argument-exception-no-accounts-of-type-slack-configured-please-set-up-an-account-using-the-xpack-notification-slack-settings/116307/5 "2018-01-20T15:58:02Z")

</div>

Yes, I did restart all nodes, I tried to run your query I've got back nothing(

Is that namespace setting MUST be across all nodes? even ingest and coordinate nodes? or just master and data nodes are fine?

* * *

I was however able to address my issue by changing format to a single line, and that seems to work:

```
xpack.notification.slack.account.monitoring.url=https://hooks.slack.com/services/X/Y/Z

```

I don't really have `elasticsearch.yml` as I run elasticsearch via Docker and with Docker there are environment settings that override elasticsearch.yml settings and single line is proper format (I keep forgetting that).

---

<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 17, 2018, 3:58pm UTC](https://discuss.elastic.co/t/watcher-illegal-argument-exception-no-accounts-of-type-slack-configured-please-set-up-an-account-using-the-xpack-notification-slack-settings/116307/6 "2018-02-17T15:58:24Z")

</div>

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