Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Sumo Logic collection solution for slack

Project description


Solution to pull logs from Slack to Sumo Logic


This collector can be deployed both onprem and on cloud.

Deploying the collector on a VM

  1. Get Token from Slack for your workspace/Team.

  2. Add a Hosted Collector and one HTTP Logs Source

  3. Using the sumologic-slack collector

    • Method 1 - Configuring the sumologic-slack collector

      Below instructions assume pip is already installed if not then, see the pip docs on how to download and install pip. sumologic-slack is compatible with python 3.7 and python 2.7. It has been tested on Ubuntu 18.04 LTS and Debian 4.9.130. Login to a Linux machine and download and follow the below steps:

      • Install the collector using below command pip install sumologic-slack

      • Create a configuration file named slackcollector.yaml in home directory by copying the below snippet.

            TOKEN: <Paste the URL for the SLACK API TOKEN from step 1.>
            HTTP_LOGS_ENDPOINT: <Paste the URL for the HTTP Logs source from step 2.>
    • Create a cron job for running the collector every 5 minutes by using the crontab -e and adding the below line

      */5 * * * * /usr/bin/python -m sumoslack.main > /dev/null 2>&1

    • Method 2 - Collection via an AWS Lambda function

      To install Sumo Logic’s AWS Lambda script, follow the instructions below:

      • Go to

      • Search for “sumologic-slack” and select the app as shown below: App

      • In the Configure application parameters panel, shown below: Deploy

        Token: Paste the URL for the SLACK API TOKEN from step 1.
        HttpLogsEndpoint: Paste the URL for the HTTP Logs source from step 2.
      • Click Deploy.

Project details

Download files

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

Files for sumologic-slack, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size sumologic_slack-1.0.1-py3-none-any.whl (15.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size sumologic-slack-1.0.1.tar.gz (14.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page