3 ms·
Is there a way to send logs to Loki without using the tail agent? For example, a REST API for storing messages?
by monstrado 8y ago
Is there a way to send logs to Loki without using the tail agent? For example, a REST API for storing messages?
- gouthamve 8y agoHi, we're currently only exposing an API that we wrote. But we have plans to integrate with other agents such as fluentd for log collection. If the use-case has enough support, we might even be supporting a REST API.
- netingle 8y agoThere is a REST API, yes [0]. Currently you send snappy-compressed protobufs[1] containing yours log to a HTTP endpoint. We initially started using fluentd as the agent, but we found its metadata "enrichment" facilities weren't reliable enough - we'd get log lines without the pod tags, for instance. For something like Loki, which depends really heavily on the metadata for index, this was super important. So we wrote promtail. [0] https://github.com/grafana/loki/blob/master/docs/api.md https://github.com/grafana/loki/blob/master/docs/api.md [1] https://github.com/grafana/loki/blob/master/pkg/logproto/logproto.proto https://github.com/grafana/loki/blob/master/pkg/logproto/log...
- monstrado 8y agoAwesome, thanks!