Skip to content
This repository has been archived by the owner on Jan 19, 2018. It is now read-only.
/ slack-elasticorder Public archive

Simple node.js daemon dumping Slack messages to elasticsearch

License

Notifications You must be signed in to change notification settings

maetthu/slack-elasticorder

Repository files navigation

slack-elasticorder

Simple node.js daemon dumping Slack messages to Elasticsearch, aka "slack message archive for poor people".

To not appear as online all the time (without waiting for the auto-away idle timeout of 30 minutes), the daemon manually sets the user to "away" when no other client is connected for this same user.

Usage

SLACK_API_TOKEN="YOUR-TOKEN" ELASTICSEARCH_HOST="HOST:PORT" npm start

Check docker-compose.yml to setup the complete stack using docker, there's also a ready built public docker image maetthu/slack-elasticorder for the node part.

Also check the ansible playbook for a way to deploy with ansible. The API token can be supplied as

ansible-playbook -e SLACK_API_TOKEN=YOUR-TOKEN slack-elasticorder.yml

Limitations

The messages are dumped into Elasticsearch as returned from the Slack API and do not contain file attachments, just URL references to the files on Slack. Attachments are not (yet) archived locally.

License

This project is licensed under The Unlicense.

About

Simple node.js daemon dumping Slack messages to elasticsearch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published