Metadata-Version: 2.0
Name: sumologic
Version: 0.1.4
Summary: Python library for working with the Sumo Logic api.
Home-page: https://github.com/sijis/sumologic-python
Author: Sijis Aviles
Author-email: sijis.aviles@gmail.com
License: UNKNOWN
Download-URL: https://github.com/sijis/sumologic-python
Keywords: sumologic api python
Platform: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Operating System :: OS Independent
Requires-Dist: requests

sumologic-python
================

Sumologic's python api library

The library currently supports the following features:

* search
* collectors

.. code-block:: python

    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.

.. _sumologic-cli: https://github.com/sijis/sumologic-cli


