Skip to main content

Sumo Logic collection solution for G Suite Alert Center

Project description

sumologic-gsuitealertcenter

Solution to pull alerts from G Suite Alert Center to Sumo Logic

Installation

This collector can be deployed both onprem and on cloud(google cloud functions). For installing the collector as a serverless solution refer these docs

Deploying the collector on a VM

  1. Setup the Alert Center API by referring to the following docs. Here while creating key in service account make a note of the location of Service Account JSON file that has been downloaded in your computer you will need it later.

  2. Add a Hosted Collector and HTTP Source

    • To create a new Sumo Logic Hosted Collector, perform the steps in Configure a Hosted Collector.
    • Add an HTTP Logs and Metrics Source. Under Advanced you'll see options regarding timestamps and time zones and when you select Timestamp parsing specify the custom time stamp format as shown below:
      • Format: yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
      • Timestamp locator: \"createTime\": (.*),.
  3. Configuring the sumologic-gsuitealertcenter collector

    Below instructions assume pip is already installed if not then, see the pip docs on how to download and install pip. sumologic-gsuitealertcenter 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-gsuitealertcenter

    • Create a configuration file named gsuitealertcenter.yaml in home directory by copying the below snippet. Add the SUMO_ENDPOINT, CREDENTIALS_FILEPATH(downloaded in step 1) and DELEGATED_EMAIL parameters obtained from step 1 and step 2 and save it.

      SumoLogic:
        SUMO_ENDPOINT: <SUMO LOGIC HTTP URL>
      
      GsuiteAlertCenter:
        DELEGATED_EMAIL: "<use the default email address>"
        CREDENTIALS_FILEPATH: "<path to json Service Accouont JSON file>"
      
      Collection:
        ENVIRONMENT: onprem
      
      
    • 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 sumogsuitealertscollector.main > /dev/null 2>&1

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-gsuitealertcenter-1.0.3.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: sumologic-gsuitealertcenter-1.0.3.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for sumologic-gsuitealertcenter-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c3abf866b6f5c50e96faa66f26fecbb5aaa01a56656724b6272b947ffd4719ca
MD5 12f6c969bb1ed6506a756f60939f0084
BLAKE2b-256 c68174b55fcf2fdb769a0cfcabc102fb5566fa1445bd4df5faf1b0f9dcb9dc8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sumologic_gsuitealertcenter-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for sumologic_gsuitealertcenter-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cecb57688cebe427f99bfdabfb79707f20a1f6886eabf417f95afb0705d3efdc
MD5 baeb2720865219175cc3427e416a267b
BLAKE2b-256 7002b54e75e5fef94ffd657ce3ae70d9470ab529d7f5cab59f81c0504b61cd64

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