Skip to main content

Push logs generated by Pioreactors to your Slack workspace

Project description

Pioreactor Logs2Slack

This is a Pioreactor plugin to post a bioreactor's logs to a Slack channel.

Installation

This is a two part installation.

1. Setting up your Slack workspace

  1. You probably want a dedicated channel for incoming logs, as it can get chatty. So go ahead and create a dedicated channel in your Slack workspace. I've called mine experiment_logs.

  2. In Your Apps, click "Create New App" -> From "Scratch". Give it a name (something descriptive, like Pioreactor Logs2Slack), and select the workspace.

  3. On the next page, select "Incoming Webhooks", and turn "Activate" to On

  4. Click "Add new webhook to workspace"

  5. In the next section, select the channel you made in step 1. Click "Allow".

  6. On the next page, under "Webhook URL", is your new webhook URL, something like https://hooks.slack.com/services/ABC.../124.... Important: this is private, don't share it with untrusted people, don't commit it into Github, etc.

2. Installing this plugin

  1. In your Pioreactor interface, click on "Plugins". Find pioreactor-logs2slack, and click "Install" beside it. Or you can run pio plugins install pioreactor-logs2slack. Either way, this plugin will be installed on your leader Pioreactor.

  2. After installing (should take less than a minute), click on "Configuration". At the bottom of the page will be a section called [logs2slack].

[logs2slack]
slack_webhook_url=
log_level=INFO

Add your webhook URL from step 6. here. Click "Save". You can also change the level of logs to report, see Python logging levels.

  1. Power-cycle (reboot) the Pioreactor leader, or ssh into the Pioreactor leader and run sudo systemctl restart pioreactor_startup_run@logs2slack.service

  2. In your dedicated Slack channel, you should start to see logs arrive!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pioreactor_logs2slack-0.4.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

pioreactor_logs2slack-0.4.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pioreactor_logs2slack-0.4.0.tar.gz.

File metadata

  • Download URL: pioreactor_logs2slack-0.4.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0rc2

File hashes

Hashes for pioreactor_logs2slack-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8707806252b39f15702942cd3e74ed268b0f706ad42109be1f7ce3d32c6aa0bb
MD5 eacc80cd904cadf1a7fba4bcdcfe34b9
BLAKE2b-256 0e77f620919d712a4c5ecd4f906e95b646a98466023fc4605e9caf4adbca00fe

See more details on using hashes here.

File details

Details for the file pioreactor_logs2slack-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pioreactor_logs2slack-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61e653719e663df287bc60f33af79cb44b540728be99cef635d45bc82e389735
MD5 e1c4d44cbc6c55b2a0d0173e5d59f81a
BLAKE2b-256 d986c6f0dc0403c0722113186f2b17d56740222b32a6676f618fa430e60ef3b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page