{"id":16645232,"url":"https://github.com/cosmo0920/fluent-bit-go-loki","last_synced_at":"2025-03-21T16:30:43.645Z","repository":{"id":64305027,"uuid":"175820874","full_name":"cosmo0920/fluent-bit-go-loki","owner":"cosmo0920","description":"[Deprecated] The predessor of fluent-bit output plugin for Loki. https://github.com/grafana/loki","archived":false,"fork":false,"pushed_at":"2019-10-05T10:21:40.000Z","size":8722,"stargazers_count":40,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-13T08:13:23.464Z","etag":null,"topics":["cloud-native","fluent-bit","fluentd","golang","grafana","loki","plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cosmo0920.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-15T13:00:05.000Z","updated_at":"2024-07-08T08:31:31.000Z","dependencies_parsed_at":"2023-01-15T10:30:44.969Z","dependency_job_id":null,"html_url":"https://github.com/cosmo0920/fluent-bit-go-loki","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmo0920%2Ffluent-bit-go-loki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmo0920%2Ffluent-bit-go-loki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmo0920%2Ffluent-bit-go-loki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmo0920%2Ffluent-bit-go-loki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmo0920","download_url":"https://codeload.github.com/cosmo0920/fluent-bit-go-loki/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221816769,"owners_count":16885390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-native","fluent-bit","fluentd","golang","grafana","loki","plugin"],"created_at":"2024-10-12T08:13:41.657Z","updated_at":"2024-10-28T10:26:11.885Z","avatar_url":"https://github.com/cosmo0920.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluent-bit loki output plugin\n\n**NOTICE!**\n**fluent-bit-go-loki is now merged in [loki repository](https://github.com/grafana/loki).**\n\n[![Build Status](https://travis-ci.org/cosmo0920/fluent-bit-go-loki.svg?branch=master)](https://travis-ci.org/cosmo0920/fluent-bit-go-loki)\n[![Build status](https://ci.appveyor.com/api/projects/status/6s9itaxvrkos11sx/branch/master?svg=true)](https://ci.appveyor.com/project/cosmo0920/fluent-bit-go-loki/branch/master)\n\nWindows binaries are available in [release pages](https://github.com/cosmo0920/fluent-bit-go-loki/releases).\n\nDockerHub base images is available in [DockerHub](https://hub.docker.com/r/cosmo0920/fluent-bit-go-loki).\n\nThis plugin works with fluent-bit's go plugin interface. You can use fluent-bit loki to ship logs into grafana datasource with loki.\n\nThe configuration typically looks like:\n\n```graphviz\nfluent-bit → loki → grafana ← other grafana sources\n```\n\n# Usage\n\n```bash\n$ fluent-bit -e /path/to/built/out_loki.so -c fluent-bit.conf\n```\n\nOr,\n\n\n```bash\n$ docker build . -t fluent-bit/loki-plugin\n```\n\nand then, specify Url parameter as environment variable:\n\n```bash\n$ docker run -it -e=\"LOKI_URL=http://[YOURHOST]:[YOURPORT]/loki/api/v1/push\" fluent-bit/loki-plugin\n```\n\nUsing docker image from docker hub.\n\n```bash\n$ docker pull cosmo0920/fluent-bit-go-loki:latest\n```\n\nOther released images are available in [DockerHub's fluent-bit-go-loki image tags](https://hub.docker.com/r/cosmo0920/fluent-bit-go-loki/tags).\n\n# Prerequisites\n\n* Go 1.11+\n* gcc (for cgo)\n* make (for Makefile)\n\n## Building\n\n```bash\n$ make\n```\n\n### Configuration Options\n\n| Key           | Description                                   | Default                             |\n| --------------|-----------------------------------------------|-------------------------------------|\n| Url           | Url of loki server API endpoint               | http://localhost:3100/loki/api/v1/push |\n| BatchWait     | Time to wait before send a log batch to Loki, full or not. (unit: sec) | 1 second   |\n| BatchSize     | Log batch size to send a log batch to Loki (unit: Bytes)    | 10 KiB (10*1024 Bytes)|\n| Labels        | labels for API requests                       | job=\"fluent-bit\" (describe below)   |\n| LogLevel      | Specify log level                             | info                                |\n| RemoveKeys    | Comma separated list of needless record keys to remove. | none                      |\n| LabelKeys     | Comma separated list of keys to use as stream labels.   | none                      |\n\nExample:\n\nadd this section to fluent-bit.conf\n\n```properties\n[Output]\n    Name loki\n    Match *\n    Url http://localhost:3100/loki/api/v1/push\n    BatchWait 10 # (10msec)\n    BatchSize 30 # (30KiB)\n    Labels {test=\"fluent-bit-go\",lang=\"Golang\"}\n    RemoveKeys key1,key2\n```\n\n## Useful links\n\n* [fluent-bit-go](https://github.com/fluent/fluent-bit-go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmo0920%2Ffluent-bit-go-loki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmo0920%2Ffluent-bit-go-loki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmo0920%2Ffluent-bit-go-loki/lists"}