Logstash slack webhook


(Suran Kularatna) #1

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.

(Magnus Bäck) #2

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.


(Suran Kularatna) #3

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.


(Magnus Bäck) #4

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


(system) #5

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