An open API service indexing awesome lists of open source software.

https://github.com/leask/tail-2-slackbot

`tail -f` the log files and send all the new lines to any public channel as Slackbot.
https://github.com/leask/tail-2-slackbot

Last synced: about 1 year ago
JSON representation

`tail -f` the log files and send all the new lines to any public channel as Slackbot.

Awesome Lists containing this project

README

          

# tail-2-slackbot

`tail -f` the log files and send all the new lines to any public channel as Slackbot.

![Screen Shot](https://raw.githubusercontent.com/Leask/tail-2-slackbot/master/images/demo.png)

## Installation

$ git clone https://github.com/Leask/tail-2-slackbot.git
$ cd tail-2-slackbot
$ npm install
$ cp config.sample.js config.js

## Usage

1. Go to Slack integrations configuration page in your browser:

`https://[org domain].slack.com/services/new`

1. Add a new `Slackbot`, you will see a url like this one:

`https://[org domain].slack.com/services/hooks/slackbot?token=[token]`

1. Edit the `config.js` with the informations(`org-domain` & `token`) above.
1. Remember to set the Slack `channel` in `config.js`.
1. Add the log files you want to watch into `logfiles` list in `config.js`.
1. Run the `tail-2-slackbot` daemon:

`$ node main`

## Getting help

Email / iMessage / Hangouts: i@leaskh.com