Skip to main content

A simple interface to run SumoLogic queries

Project description

Simple Search API for the SumoLogic Python SDK

Install requires pip >= 19.

Usage:

from sumologic import SumoLogic
from sumo_simple import SumoLogicSimple
from datetime import timedelta

sumo = SumoLogic(MY_ACCESS_ID, MY_ACCESS_KEY)
simple = SumoLogicSimple(sumo)

fields, messages, aggregates = simple.search('''
    _sourceCategory=nginx/prod
''', startTime=timedelta(minutes=-10)
)

print([message for message in messages])

TODO: Publish to PyPI

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-simple, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size sumologic_simple-0.1.1-py3-none-any.whl (15.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sumologic-simple-0.1.1.tar.gz (15.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page