Skip to main content

Python library for working with the Sumo Logic api.

Project description

Sumologic’s python api library

The library currently supports the following features:

  • search

  • collectors

from sumologic import Client, Collectors, Search

# Need a client to authenticate to service
client = Client(auth=('username', 'password'))

# collector usage
collector = Collectors(client)
for c in collector.get_collectors():
    print('{0}:{1}'.format(c['name'], c['alive']))

# find and delete a collector
c = collector.find('logserver')
c.delete()

# search usage
search = Search(client)
results = search.query('log1', formats='json')
print(results)

To see the library in use, go to sumologic-cli repo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sumologic-0.1.4-py2-none-any.whl (5.9 kB view details)

Uploaded Python 2

File details

Details for the file sumologic-0.1.4-py2-none-any.whl.

File metadata

File hashes

Hashes for sumologic-0.1.4-py2-none-any.whl
Algorithm Hash digest
SHA256 21d911e15e5f097cbbaeaff5fdbff3265ef05b32e2b94fa1aa5721560252a90f
MD5 79b8bb59afe7fbf61f0898c91be9ac62
BLAKE2b-256 55a49454e551507bd4c0d9e992e661b17d1b3b044ac584169ae8e7adff6e8f15

See more details on using hashes here.

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