# Logstash slack webhook

**URL:** <https://discuss.elastic.co/t/logstash-slack-webhook/72569>\
**Category:** Logstash\
**Created:** [January 24, 2017, 6:34am UTC](https://discuss.elastic.co/t/logstash-slack-webhook/72569 "2017-01-24T06:34:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suran\_Kularatna](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Suran\_Kularatna](https://discuss.elastic.co/u/Suran_Kularatna)\
**Post date:** [January 24, 2017, 6:34am UTC](https://discuss.elastic.co/t/logstash-slack-webhook/72569/1 "2017-01-24T06:34:00Z")

</div>

Hi,

I would like to import my slack messages into logstash, we can't use the IRC and so was looking at outgoing webhooks.

1. How do i configure logstash http server
2. What do i put in the logstash config file to be able to receive the slack messages.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 24, 2017, 7:27am UTC](https://discuss.elastic.co/t/logstash-slack-webhook/72569/2 "2017-01-24T07:27:50Z")

</div>

Logstash's websocket input doesn't support server mode but maybe the regular http input works for this purpose? Something like

```nohighlight
input {
  http {
    port => 8080 # or whatever port you'd like to use
  }
}

```

should get you started.

---

<div class="post-metadata">

**Author:** ![Suran\_Kularatna](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Suran\_Kularatna](https://discuss.elastic.co/u/Suran_Kularatna)\
**Post date:** [January 24, 2017, 7:50am UTC](https://discuss.elastic.co/t/logstash-slack-webhook/72569/3 "2017-01-24T07:50:13Z")

</div>

tried it, and i put the webhook url in the slack config has [http://localhost:8080](http://localhost:8080)

set the channel and ran logstash -f where file name is the config as per teh template above... nothing happened.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 24, 2017, 8:04am UTC](https://discuss.elastic.co/t/logstash-slack-webhook/72569/4 "2017-01-24T08:04:04Z")

</div>

Um, isn't Slack cloud-only? If yes, [http://localhost:8080](http://localhost:8080) obviously won't work.

---

<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 21, 2017, 8:04am UTC](https://discuss.elastic.co/t/logstash-slack-webhook/72569/5 "2017-02-21T08:04:04Z")

</div>

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