No description or website provided.
Go
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
vendor
.gitignore
Dockerfile
README.md
forwarder.go
forwarder_full_test.go
forwarder_test.go
retry.go
s3.go

README.md

Coco Splunk Http Forwarder

Building

CGO_ENABLED=0 go build -a -installsuffix cgo -o coco-splunk-http-forwarder .

docker build -t coco/coco-splunk-http-forwarder .

Description

The Splunk forwarder is a golang application that posts a stdin to a provided URL. Failed messages are stored in S3 and retried with an exponential backoff mechanism, in parallel to the normal flow. Docker images builds a container that forwards the journalctl logs to the Splunk endpoint

Usage ex

e.g. journalctl -f --output=json | ./coco-splunk-http-forwarder -url=$FORWARD_URL