Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Sink documentation #70

Open
alexivkin opened this issue Feb 1, 2019 · 4 comments
Open

Sink documentation #70

alexivkin opened this issue Feb 1, 2019 · 4 comments

Comments

@alexivkin
Copy link

Could someone add docs into README.md on how to configure sinks?
Preferably in a form that k8s noobs could use

@alitoufighi
Copy link

Hi everyone.
Is there any draft or progress about this?
I'd like to contribute.

@alok87
Copy link
Contributor

alok87 commented Apr 15, 2020

@alitoufighi
Copy link

@alok87 Thanks, but I wanted to forward the events to an external endpoint. So I tried this, but nothing was sent.
Even I don't know what glog was supposed to mean.

@xamebax
Copy link

xamebax commented Jun 18, 2020

@alitoufighi, glog is a Go logging package with a specific logging format. If you want to send logs to an external endpoint, it seems you need to set http as the sink instead of glog in addition to setting httpSinkUrl https://github.com/heptiolabs/eventrouter/blob/733f06f325c002f80da9a5045eaa060766c9c160/sinks/interfaces.go#L44-L60

If you have filebeat/logstash in your cluster, you can use stdout instead of glog as an external sink, and your logging solution should pick it up, just like logs from all other pods. I deployed this app using helm yesterday with stdout as the sink, and can see the events in Kibana. My config.json ConfigMap mounted to the pod looks like this:

data:
  config.json: |-
    {
      "sink": "stdout"
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants