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
Release history Release notifications | RSS feed
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.0.tar.gz
(15.8 kB
view hashes)
Built Distribution
Close
Hashes for sumologic_simple-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6715855a647c0d8810fc6ea5e1eea8daf770af4098d1d92ab0ee35595ce9a695 |
|
MD5 | 62e628ea3d2406c34787b5855cf921c4 |
|
BLAKE2b-256 | a17a8e6c5bb26e2201713055102d2ad0e4fb4165c5ec29db5ab4e848f2837f2a |