https://github.com/evzpav/dokku-slack-logs
Dokku plugin to read logs from a Slack bot
https://github.com/evzpav/dokku-slack-logs
dokku logging slack
Last synced: about 1 month ago
JSON representation
Dokku plugin to read logs from a Slack bot
- Host: GitHub
- URL: https://github.com/evzpav/dokku-slack-logs
- Owner: evzpav
- License: mit
- Created: 2019-05-19T15:28:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-19T17:02:27.000Z (about 7 years ago)
- Last Synced: 2023-03-05T15:40:16.559Z (over 3 years ago)
- Topics: dokku, logging, slack
- Language: Go
- Size: 1.18 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dokku plugin to get app logs from Slack
======================================
## requirements
- dokku 0.12.x+
- docker 1.8.x
## installation
```shell
# dokku-logging-supervisord is needed
dokku plugin:install https://github.com/sehrope/dokku-logging-supervisord.git
dokku plugin:install https://github.com/evzpav/dokku-slack-logs.git
```
## commands
```
slack-logs:enable, connects to Slack bot
```
## usage
```shell
# create an app on Slack and get the bot token
# on Dokku machine run:
# enable the bot:
dokku config:set --global SLACK_BOT_TOKEN=
dokku slack-logs:enable
# on Slack app:
# Default type is web if not specified
logs
#Example 1:
logs myapp
# it will try to read log file from /var/log/dokku/myapp/web.00.log and print to Slack bot
#Example 2:
logs myapp worker
# it will try to read log file from /var/log/dokku/myapp/worker.00.log and print to Slack bot
```
## License
MIT