{"id":18339785,"url":"https://github.com/relex/fluentlib","last_synced_at":"2025-08-13T23:04:56.584Z","repository":{"id":44477795,"uuid":"358157457","full_name":"relex/fluentlib","owner":"relex","description":"A Go library for Fluentd's forward protocol and tools for Fluentd / Fluent Bit","archived":false,"fork":false,"pushed_at":"2024-05-16T10:54:14.000Z","size":82,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-06T05:36:23.292Z","etag":null,"topics":["fluent-bit","fluentd","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/relex.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-15T06:51:38.000Z","updated_at":"2024-05-16T10:54:16.000Z","dependencies_parsed_at":"2024-05-16T11:59:20.665Z","dependency_job_id":null,"html_url":"https://github.com/relex/fluentlib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/relex/fluentlib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relex%2Ffluentlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relex%2Ffluentlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relex%2Ffluentlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relex%2Ffluentlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/relex","download_url":"https://codeload.github.com/relex/fluentlib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relex%2Ffluentlib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270330595,"owners_count":24565816,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fluent-bit","fluentd","golang"],"created_at":"2024-11-05T20:19:22.646Z","updated_at":"2025-08-13T23:04:56.517Z","avatar_url":"https://github.com/relex.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluentdlib\n\nA library for Fluentd's [forward](https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1) protocol and tools for Fluentd / Fluent Bit\n\n## Tools\n\nDump contents of Fluentd Forward messages (Forward, PackedForward, CompressedPackedForward) and Fluent Bit chunk files:\n\n```bash\nfluentlibtool dump [filepath]...\n```\n\nRun a fake Fluentd server to print logs in JSON to stdout or one file per each tag + key fields\n\n```bash\nfluentlibtool server -f 0 -x 0 -n 0.5\n```\n\n```bash\nfluentlibtool server --split_output_keys=environment/class,level --split_output_path=/tmp/%s.json --split_strict_mode=true\n```\n\n(`-f`, `-x`, and `-n` are to simulate network errors etc, use `fluentlibtool help server` to get help)\n\n## Library\n\n- `protocol/fluentbitchunk` can decode Fluent Bit's [internal chunk (buffer) files](https://docs.fluentbit.io/manual/administration/buffering-and-storage).\n- `protocol/forwardprotocol` provides definitions of [Fluentd Forward Protocol v1](https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1) in Go, as well as utility functions for handshaking and decoding.\n- `server` provides a fake Fluentd server that can be used for testing\n\nThe library part is intended for verification and functions here are NOT optimized for performance.\n\nSee `server/server_test.go:TestServerBasic` for basic examples of a client\n\n## Build\n\n1. Install go\n2. Install https://github.com/relex/gotils\n\n```bash\nmake\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelex%2Ffluentlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelex%2Ffluentlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelex%2Ffluentlib/lists"}