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.1.tar.gz
(15.8 kB
view details)
Built Distribution
File details
Details for the file sumologic-simple-0.1.1.tar.gz
.
File metadata
- Download URL: sumologic-simple-0.1.1.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.2 CPython/3.6.9 Linux/4.15.0-74-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d57d1f6c4afa3fa88a43adf1e0d614d116ede6804bf57031bb9ee204c4a68051 |
|
MD5 | ab49797002d54b665aa50b89dca40992 |
|
BLAKE2b-256 | 43dfd3fc9baebe7bd67d296325bb887265218423335236a9c5bd8a70b2151d3c |
File details
Details for the file sumologic_simple-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: sumologic_simple-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.2 CPython/3.6.9 Linux/4.15.0-74-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a006a3c136e1d69ce61cdbf47a5744cd788bae47131a4677a95580aaef834f8 |
|
MD5 | eaf6f85880d103c24a5dbdda424238a0 |
|
BLAKE2b-256 | de59f8fc3e7d2de4e841176bee60a2f7a264071a0c8a8df657255a43e77e4aab |