https://github.com/sijis/sumologic-python
Sumologic's python api library
https://github.com/sijis/sumologic-python
library python sdk sumologic
Last synced: 3 months ago
JSON representation
Sumologic's python api library
- Host: GitHub
- URL: https://github.com/sijis/sumologic-python
- Owner: sijis
- License: apache-2.0
- Created: 2013-12-31T20:16:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T20:24:53.000Z (almost 8 years ago)
- Last Synced: 2025-09-29T18:42:43.777Z (8 months ago)
- Topics: library, python, sdk, sumologic
- Language: Python
- Size: 28.3 KB
- Stars: 8
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://travis-ci.org/sijis/sumologic-python.svg?branch=master
:target: https://travis-ci.org/sijis/sumologic-python
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