Skip to content

nextgenhealthcare/sumologic-sdk-go

Repository files navigation

GoDoc license Build Status Go Report Card

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

import "github.com/nextgenhealthcare/sumologic-sdk-go"

Usage

  • auth_token: Base64 encoding of <accessId>:<accessKey>. For more information, see 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
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.

About

A Go implementation of the Sumo Logic API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published