# Slack notifications timing out

**URL:** <https://discuss.elastic.co/t/slack-notifications-timing-out/279366>\
**Category:** Kibana\
**Created:** [July 22, 2021, 10:30am UTC](https://discuss.elastic.co/t/slack-notifications-timing-out/279366 "2021-07-22T10:30:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pup\_seba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pup_seba/32/42988_2.png) [@pup\_seba](https://discuss.elastic.co/u/pup_seba)\
**Post date:** [July 22, 2021, 10:30am UTC](https://discuss.elastic.co/t/slack-notifications-timing-out/279366/1 "2021-07-22T10:30:11Z")

</div>

Hi,

We are trying to enable the posibility to send slack messages when a condition is met, by using "Alerts and Actions".

We configured the keystore with slack accounts but when testing the slack connector it fails and in kibana logs we see this error:

```bash
[pod/cluster-logging-kibana-8459d45899-rcs7g/kibana] {"type":"log","@timestamp":"2021-07-22T09:51:40Z","tags":["warning","plugins","actions","actions"],"pid":6,"message":"action execution failure: .slack:e4262de2-831c-4764-94e0-c49ba41b06e3: test: error posting slack message: A request error occurred: connect ETIMEDOUT 3.123.248.34:443"}

```

We suspect that this is due to a proxy configuration but it keeps failing even after adding this env to kibana and restarting the process:

```auto
            - name: JAVA_OPTS
              value: >-
                -Dhttps.proxyHost=proxy.internal.xxx.xxx
                -Dhttps.proxyPort=8080

```

Any idea what could be missing?

Thank you,

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [July 22, 2021, 10:42am UTC](https://discuss.elastic.co/t/slack-notifications-timing-out/279366/2 "2021-07-22T10:42:01Z")

</div>

Hi,  
If you are using the [`xpack.actions.whitelistedHosts`](https://www.elastic.co/guide/en/kibana/7.9/alert-action-settings-kb.html#action-settings) setting, make sure the hostname is whitelisted.

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [July 22, 2021, 10:44am UTC](https://discuss.elastic.co/t/slack-notifications-timing-out/279366/3 "2021-07-22T10:44:34Z")

</div>

Also please check if the proxy configurations are configured as described in [Alerting and action settings in Kibana | Kibana Guide [7.13] | Elastic](https://www.elastic.co/guide/en/kibana/current/alert-action-settings-kb.html)

---

<div class="post-metadata">

**Author:** ![pup\_seba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pup_seba/32/42988_2.png) [@pup\_seba](https://discuss.elastic.co/u/pup_seba)\
**Post date:** [July 22, 2021, 10:48am UTC](https://discuss.elastic.co/t/slack-notifications-timing-out/279366/4 "2021-07-22T10:48:02Z")

</div>

I think you are on point with the xpack configurations shown for Kibana 7.13. As I'm using 7.10.1, I was reading that documentation also assuming that the feature was already there since this [fix](https://github.com/elastic/kibana/issues/50267).

We will try those parameters with our Kibana version and see if that works. I'll let you know how it goes.

Thank you!!!

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [July 22, 2021, 1:29pm UTC](https://discuss.elastic.co/t/slack-notifications-timing-out/279366/5 "2021-07-22T13:29:56Z")

</div>

Yep, looks like the `xpack.actions.proxyUrl` was added by that fix

---

<div class="post-metadata">

**Author:** ![pup\_seba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pup_seba/32/42988_2.png) [@pup\_seba](https://discuss.elastic.co/u/pup_seba)\
**Post date:** [July 22, 2021, 5:10pm UTC](https://discuss.elastic.co/t/slack-notifications-timing-out/279366/6 "2021-07-22T17:10:44Z")

</div>

Works 🙂

Thank you!

---

<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:** [August 19, 2021, 5:11pm UTC](https://discuss.elastic.co/t/slack-notifications-timing-out/279366/7 "2021-08-19T17:11:18Z")

</div>

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