github.com/cloudfoundry/go-loggregator
go get github.com/cloudfoundry/go-loggregator

github.com/cloudfoundry/go-loggregator

Go Client Library for Loggregator

by cloudfoundry

v6.2.0+incompatible (see all)License:Apache-2.0
go get github.com/cloudfoundry/go-loggregator
Readme

go-loggregator

GoDoc travis slack.cloudfoundry.org

This is a golang client library for Loggregator.

Versions

At present, Loggregator supports two API versions: v1 (UDP) and v2 (gRPC). This library provides clients for both versions.

Note that this library is also versioned. Its versions have no relation to the Loggregator API.

Usage

This repository should be imported as:

import loggregator "code.cloudfoundry.org/go-loggregator/v8"

Examples

To build the examples, cd into the directory of the example and run go build

V1 Ingress

Emits envelopes to metron using dropsonde.

V2 Ingress

Emits envelopes to metron using the V2 loggregator-api.

Required Environment Variables:

  • CA_CERT_PATH
  • CERT_PATH
  • KEY_PATH

Runtime Stats

Emits information about the running Go proccess using a V2 ingress client.

Required Environment Variables:

  • CA_CERT_PATH
  • CERT_PATH
  • KEY_PATH

Envelope Stream Connector

Reads envelopes from the Loggregator API (e.g. Reverse Log Proxy).

Required Environment Variables:

  • CA_CERT_PATH
  • CERT_PATH
  • KEY_PATH
  • LOGS_API_ADDR
  • SHARD_ID

GitHub Stars

11

LAST COMMIT

1yr ago

MAINTAINERS

0

CONTRIBUTORS

30

OPEN ISSUES

1

OPEN PRs

2
VersionTagPublished
v7.1.0+incompatible
1yr ago
v7.2.0+incompatible
1yr ago
v7.3.0+incompatible
1yr ago
v7.0.0+incompatible
1yr ago
No alternatives found
No tutorials found
Add a tutorial