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 hashes
Filename, size sumologic-simple-0.1.1.tar.gz (15.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page