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.

Files for sumologic, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size sumologic-0.1.4-py2-none-any.whl (5.9 kB) File type Wheel Python version 2.7 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page