This Webex bot receives alerts from Graylog and messages all Webex team spaces that the bot is in with the corresponding event message.
-
node.js (minimum supported v8.0.0 & npm 2.14.12 and up)
-
Server with open port 7001
-
Sign up for Webex Teams (logged in with your web browser)
-
Create a new bot
-
Clone application on server.
-
Set two environment variables,
WEBHOOK_URL
to be the servers http address, port 7001 andBOT_TOKEN
to be the Bot Access Token that was given upon creation. -
Turn on your bot server with
npm start
-
Add the bot (by its username @BDB-Alerts) to a space in Webex Teams
-
Navigate to Graylog -> Alerts -> Notifications and click "Add Notification"
-
Select HTTP Notification and enter http://server-name:7001/graylog as the address
-
While creating a new event under "Event Definitions" add the bot to the notifcation step
Initial template was created from webex-bot-starter.
API's refrenced for further expansion of the bot can be found here: