eventrouter icon indicating copy to clipboard operation
eventrouter copied to clipboard

Sink documentation

Open alexivkin opened this issue 6 years ago • 4 comments

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

alexivkin avatar Feb 01 '19 02:02 alexivkin

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

alitoufighi avatar Apr 15 '20 14:04 alitoufighi

https://github.com/heptiolabs/eventrouter/blob/master/yaml/eventrouter.yaml#L45-L48 not the docs but you need to configure this

alok87 avatar Apr 15 '20 15:04 alok87

@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.

alitoufighi avatar Apr 15 '20 16:04 alitoufighi

@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"
    }

xamebax avatar Jun 18 '20 08:06 xamebax