{"id":19736417,"url":"https://github.com/erda-project/erda-fluent-bit","last_synced_at":"2025-04-30T04:32:06.296Z","repository":{"id":37387466,"uuid":"419940833","full_name":"erda-project/erda-fluent-bit","owner":"erda-project","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-02T10:00:21.000Z","size":262,"stargazers_count":0,"open_issues_count":0,"forks_count":11,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-05T22:32:00.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/erda-project.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}},"created_at":"2021-10-22T02:28:00.000Z","updated_at":"2024-07-02T10:00:25.000Z","dependencies_parsed_at":"2024-02-21T11:28:18.737Z","dependency_job_id":"3e3480e6-7090-4363-8e4e-b9693ca9fba7","html_url":"https://github.com/erda-project/erda-fluent-bit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erda-project%2Ferda-fluent-bit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erda-project%2Ferda-fluent-bit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erda-project%2Ferda-fluent-bit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erda-project%2Ferda-fluent-bit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erda-project","download_url":"https://codeload.github.com/erda-project/erda-fluent-bit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251643124,"owners_count":21620428,"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":[],"created_at":"2024-11-12T01:07:05.924Z","updated_at":"2025-04-30T04:32:06.027Z","avatar_url":"https://github.com/erda-project.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [fluent-bit](https://fluentbit.io/) integrated in erda\n\n## 字段名规定\n- `__tags_*`：日志标签，最终通过`nest`生成tags\n```json\n{\n  \"tags\":{\n    \"level\": \"INFO\"\n  }\n}\n```\n- `__labels_*`：日志导出配置的标签，最终通过`nest`生成labels，用以兼容日志分析\u0026日志导出组件\n```json\n{\n  \"labels\":{\n    \"monitor_log_output\": \"elasticsearch\"\n  }\n}\n```\n- `__pri_*`: 私有的中间Key，最终会被删除\n\n## 日志模拟\n### dd\n### flog\n1. 安装：`go install github.com/mingrammer/flog@latest`\n2. 生成：\n`flog -t log -o testdata/k8s/test.log -b 1073741824 -s 10ms -w`\n生成1G大小日志`testdata/k8s/test.log`，","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferda-project%2Ferda-fluent-bit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferda-project%2Ferda-fluent-bit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferda-project%2Ferda-fluent-bit/lists"}