Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/telkomindonesia/loki-push-pipe
https://github.com/telkomindonesia/loki-push-pipe
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/telkomindonesia/loki-push-pipe
- Owner: TelkomIndonesia
- Created: 2023-06-12T11:39:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-15T03:57:59.000Z (over 1 year ago)
- Last Synced: 2024-06-21T06:30:35.209Z (7 months ago)
- Language: Go
- Size: 53.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.