I develop this tool to dump and view log in Kaggler-ja slack.
This tool works on Google App Engine (GAE).
Maybe, you can use this on your slack with small change.
Our demo is here: https://kaggler-ja-slack-archive.appspot.com/
- Python 2.7
- Set up your gcp account and install Google Cloud SDK.
- Download third-party libraries to pylib directory
pip install -t pylib -r requirements.txt
- change
config.py
- APP_NAME: set your app name. (it changes html title and left top workspace name)
- Set your Slack API Key as environment variable: SLACK_API_KEY or set the key as Settings.api_key entity on datastore.
- On local development server, you can set environment variable like
dev_appserver.py --env_var SLACK_API_KEY=xxxx app.yaml
- On local development server, you can set environment variable like
- Deploy your app.
gcloud app deploy app.yaml index.yaml cron.yaml
. If you want to try on local, rundev_appserver.py app.yaml
instead. - Kick first log downloading by accessing http://your_url/cron/job
- See your top page http://your_url/
- Export your slack data. see https://get.slack.help/hc/en-us/articles/201658943-Export-your-workspace-data.
- Upload it somewhere
- set your file's url to
SLACK_DUMPED_LOG_URL
, and set `ROBUST_IMPORTING_MODE