tail -f
the log files and send all the new lines to any public channel as Slackbot.
$ git clone https://github.com/Leask/tail-2-slackbot.git
$ cd tail-2-slackbot
$ npm install
$ cp config.sample.js config.js
-
Go to Slack integrations configuration page in your browser:
https://[org domain].slack.com/services/new
-
Add a new
Slackbot
, you will see a url like this one:https://[org domain].slack.com/services/hooks/slackbot?token=[token]
-
Edit the
config.js
with the informations(org-domain
&token
) above. -
Remember to set the Slack
channel
inconfig.js
. -
Add the log files you want to watch into
logfiles
list inconfig.js
. -
Run the
tail-2-slackbot
daemon:$ node main
Email / iMessage / Hangouts: i@leaskh.com