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.

Source Distribution

sumologic-simple-0.1.1.tar.gz (15.8 kB view hashes)

Uploaded source

Built Distribution

sumologic_simple-0.1.1-py3-none-any.whl (15.7 kB view hashes)

Uploaded py3

Supported by

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