This project aims to provide an integration between RocketChat and Graylog, from a webhook.
-
Login as admin user and go to: Administration > Integrations > New Integration > Incoming WebHook
-
Set "Enabled" and "Script Enabled" to "
true
" -
Set all channel, icons, etc. as you preference.
-
Paste contents of
graylog-rocketchat.hooks.js
into the Script field. -
Copy WebHook URL as soon as you saved the integration and proceed to the configuration of webhook integration in Graylog.
More information about webhooks: https://rocket.chat/docs/administrator-guides/integrations
-
Login as admin user and go to: Alerts > Manage Notifications > Add new notification > Select the stream > Select the notification type "HTTP Alarm Callback" > Set a title for the alarm > Paste WebHook URL from Rocket.Chat
-
Click "test" to validate the integration
More information about HTTP alert notification: http://docs.graylog.org/en/2.4/pages/streams/alerts.html?highlight=alerts#http-alert-notification
Example alert notification