https://github.com/nextgenhealthcare/sumologic-sdk-go
A Go implementation of the Sumo Logic API
https://github.com/nextgenhealthcare/sumologic-sdk-go
sdk-go sumologic
Last synced: 4 months ago
JSON representation
A Go implementation of the Sumo Logic API
- Host: GitHub
- URL: https://github.com/nextgenhealthcare/sumologic-sdk-go
- Owner: nextgenhealthcare
- License: mit
- Created: 2018-01-28T21:17:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-20T16:23:00.000Z (almost 7 years ago)
- Last Synced: 2025-08-14T23:13:24.938Z (10 months ago)
- Topics: sdk-go, sumologic
- Language: Go
- Homepage:
- Size: 35.2 KB
- Stars: 5
- Watchers: 1
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://godoc.org/github.com/nextgenhealthcare/sumologic-sdk-go)
[](https://choosealicense.com/licenses/mit/)
[](https://travis-ci.org/nextgenhealthcare/sumologic-sdk-go)
[](https://goreportcard.com/report/github.com/nextgenhealthcare/sumologic-sdk-go)
# SumoLogic API in Go
A Go wrapper for the SumoLogic API.
## Contributing
Any and all contributions are welcome. Please don't hestiate to submit an issue or pull request.
## Roadmap
The initial release is focused on being consumed by a Terraform provider in AWS environments such as support for managing hosted collectors and AWS specific hosted sources (e.g. AWS Cloudtrail).
## Installation
```go
import "github.com/nextgenhealthcare/sumologic-sdk-go"
```
## Usage
* auth_token: Base64 encoding of `:`. For more information, see [API Authentication](https://help.sumologic.com/APIs/General-API-Information/API-Authentication)
* endpoint_url: Sumo Logic has several deployments that are assigned depending on the geographic location and the date an account is created. For more information, see [Sumo Logic Endpoints and Firewall Security](https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security)
```go
client, _ := sumologic.NewClient("auth_token", "endpoint_url")
collector, _, err := client.GetHostedCollector(134485191)
if err == sumologic.ErrCollectorNotFound {
log.Fatalf("Collector not found: %s\n", err)
}
if err != nil {
log.Fatalf("Unknown error: %s\n", err)
}
log.Printf("Collector %d: %s\n", collector.Id, collector.Name)
```
## Development
Run unit tests with `make test`.