Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/telkomindonesia/loki-push-pipe


https://github.com/telkomindonesia/loki-push-pipe

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Loki Push Pipe

A very simple service to pipe [loki push API](https://grafana.com/docs/loki/latest/api/#push-log-entries-to-loki) message to stdout as JSON object. The objective is to be able to multiplex logs send to loki to another service(s) such as kafka or elasticsearch using already-made utility such as [fluent-bit](https://fluentbit.io/) or [benthos](https://www.benthos.dev/). See [example](./example/docker-compose.yml#L13-L47) for reference on how to pipe received logs to fluent-bit.

## JSON Data

Each entry received by loki-push-pipe will be converted to one json message with the following structure:

```json
{
"labels": {
"":"",
"":"",
"...":"..."
},
"timestamp": "",
"tenant_id": "",
"line": ""
}
```

Each entry outputted will be separated by new line.