Skip to main content

Sumo Logic collection solution for slack

Project description

sumologic-slack

Solution to pull logs from Slack to Sumo Logic

Installation

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.

        Slack:
            TOKEN: <Paste the URL for the SLACK API TOKEN from step 1.>
        
        Collection:
            BACKFILL_DAYS: <Enter the Number of days before the event collection will start.>
        
        SumoLogic:
            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 https://serverlessrepo.aws.amazon.com/applications

      • 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.
        BackfillDays: Enter the Number of days before the event collection will start
        
      • 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.

Source Distribution

sumologic-slack-1.0.3.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sumologic_slack-1.0.3-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file sumologic-slack-1.0.3.tar.gz.

File metadata

  • Download URL: sumologic-slack-1.0.3.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for sumologic-slack-1.0.3.tar.gz
Algorithm Hash digest
SHA256 4319fedad8345c95a62ac1c54c9cd80be8f15a0c99f6d766e681bef4d5005b0d
MD5 d820163a8d82c1e3407fa7b9bd1d491c
BLAKE2b-256 55a5f2794c1bf4b19d45431ad91890e9829962dbbec26c3540d942decddf404b

See more details on using hashes here.

File details

Details for the file sumologic_slack-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: sumologic_slack-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for sumologic_slack-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f07f276c42dbb0f2d1387916963aeeb00e7da7b35f7eb6060f46ac4623af199d
MD5 9c622f4e9758c11e1cd165e4f07b6c13
BLAKE2b-256 8108cd6666c8ae544235f1497423ca26bc2ca413673f471c622a1230f91d81a7

See more details on using hashes here.

Supported by

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