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 Python 3

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