/sumoll

Small sumologic client for golang

Primary LanguageGoMIT LicenseMIT

sumoll

Small sumologic payload sender client

CircleCI Build Status Coverage Status Go Report Card GoDoc

Installation

$ go get github.com/ushios/sumoll

Usage

Send string to http source collection

client := NewHTTPSourceClient("http://collectors.au.sumologic.com/receiver/v1/http/...")
client.Send(strings.NewReader("your message here."))

Developing

Integration test

There's a test actually injecting data to sumologic. In order that to run, you need to set the env variable SUMOLL_TEST_HTTP_SOURCE_URL like this:

SUMOLL_TEST_HTTP_SOURCE_URL="https://collectors.eu.sumologic.com/receiver/v1/http/randomCollectorURL" go test --count=1 . -v