Logstash slack webhook

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.

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

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

should get you started.

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

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

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

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