SumoLogic, updated 🕥 2023-03-10 06:17:28

Sumo Logic Python SDK

Community-supported Python interface to the Sumo Logic REST API. The idea is to make it easier to hit the API in Python code. Sample scripts available in the scripts folder. Please submit issues here via Github. Do not submit customer issues to Sumo Logic support (but REST API issues are of course supported).

TLS 1.2 Requirement

Sumo Logic only accepts connections from clients using TLS version 1.2 or greater. To utilize the content of this repo, ensure that it's running in an execution environment that is configured to use TLS 1.2 or greater.

Installing

pip install sumologic-sdk

How to use / examples

See scripts/

License

Copyright 2017 Sumo Logic Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributing

Please see CONTRIBUTING.md for guidelines

Support

This repository and the code within is not supported by Sumo Logic.

Issues

Bump certifi from 2019.3.9 to 2022.12.7

opened on 2022-12-08 05:21:08 by dependabot[bot]

Bumps certifi from 2019.3.9 to 2022.12.7.

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/SumoLogic/sumologic-python-sdk/network/alerts).

Update sumologic.py

opened on 2022-09-13 17:31:51 by AlexWaclawik

Added support for the Report Jobs that can be done for V2 Dashboards.

Start Report Job Get Report Job Generation Status Get Report Job Generation Result

In addition to these three apis, I also added a get_file() method under post_file(). This downloads the dashboard report to the root directory.

Update sumologic.py

opened on 2022-08-25 13:21:06 by cybercookiez

Adding Autoparsing mode option to search job function.

Added get_global_folder() method

opened on 2022-07-16 16:29:00 by mbabinski

Added a method to get the global parent folder for the authenticated user. This can be used to create a comprehensive list of top-level folders to inventory library content. Inspired by https://stackoverflow.com/questions/65832802/in-sumo-logic-how-do-i-get-a-list-of-folders-off-the-root-folder.

Thank you for considering my contribution to this valuable project!

Field names are coming as lowercase in API search_job_records()

opened on 2022-02-28 11:45:04 by shivarajmulimani

Example- | Account_name as User it renames field with lower case user

Implement high level helper functions for asynchronous APIs

opened on 2021-06-07 14:54:46 by dspruell-s01

The API server implements several asynchronous APIs that require users to submit job, poll for status, and finally fetch results. It would be logical and would help fulfill the purpose of the Python SDK as a high level client to expose helper methods that support handling these asynchronous backend jobs smoothly. The goal would be for a single call to handle necessary functionality:

  1. Submit job
  2. Poll for completion
  3. Return results

Support should allow for some specification by user of things like poll period, maximum number of tries/timeout, etc. The higher level methods could then signal situations like timeouts and failures with exceptions or similar.

The outcome would be higher level support in the SDK that smooths out the user experience and enables simpler client code without the need to add in so much polling and retry logic, etc.

Similar ideas have been proposed in #3 and #32.

Releases

0.1.11 2020-06-23 13:04:39

Content Management APIs and Lookup APIs

0.1.9 2019-03-27 19:01:21

Make print statements compatible with Python3

0.1.8 2018-08-15 18:31:50

Include PR 22,24,25,27,29,31,34,35.

2017-01-31 22:38:48

Merged PR 18,20. Also bypass 0.1.6 to match PyPI

0.1.5 2017-01-04 06:49:59

Merged PR 7,15

Sumo Logic, Inc.
GitHub Repository