{"id":16800696,"url":"https://github.com/gqcn/k8s-log","last_synced_at":"2025-08-24T15:10:08.210Z","repository":{"id":113015807,"uuid":"156353960","full_name":"gqcn/k8s-log","owner":"gqcn","description":"容器日志搜集套件。","archived":false,"fork":false,"pushed_at":"2019-03-15T09:13:09.000Z","size":108,"stargazers_count":15,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T12:17:37.163Z","etag":null,"topics":["buffer","docker","filebeat","golang","k8s","kafka","kubernetes","log","logstash"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gqcn.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-11-06T08:51:21.000Z","updated_at":"2021-11-22T11:43:38.000Z","dependencies_parsed_at":"2023-06-05T14:30:50.958Z","dependency_job_id":null,"html_url":"https://github.com/gqcn/k8s-log","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gqcn/k8s-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gqcn%2Fk8s-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gqcn%2Fk8s-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gqcn%2Fk8s-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gqcn%2Fk8s-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gqcn","download_url":"https://codeload.github.com/gqcn/k8s-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gqcn%2Fk8s-log/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269832899,"owners_count":24482333,"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-11T02:00:10.019Z","response_time":75,"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":["buffer","docker","filebeat","golang","k8s","kafka","kubernetes","log","logstash"],"created_at":"2024-10-13T09:34:44.280Z","updated_at":"2025-08-11T05:11:01.818Z","avatar_url":"https://github.com/gqcn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 容器日志搜集套件\n\n## 依赖服务\n`kafka`\n\n## 组件介绍\n\n日志搜集流程：\n\n`log-agent` -\u003e `kafka` -\u003e `log-dumper` -\u003e `log-archiver` \u0026 `log-cleaner`\n\n其中，`kafka`支持多端消费，目前仅处理转储操作。\n\n\n### `log-agent`\n日志搜集客户端，与业务容器运行到同一个`Pod`中(使用`kubernetes`时)；或者与业务容器运行到同一个容器中；业务容器与搜集客户端需要共享日志文件存放目录路径；搜集到的内容发送到`kafka`中进行缓冲处理。\n\n\n### `log-dumper`\n日志搜集转储端，用于消费`kafka`中的日志，并转储到指定的磁盘下，按照搜集的路径进行存放。\n\n### `log-archiver`\n转储文件归档端，用于定期将原始日志文件进行压缩归档。\n\n\n### `log-cleaner`\n归档文件清理端，用于定期将归档的日志进行清理。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgqcn%2Fk8s-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgqcn%2Fk8s-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgqcn%2Fk8s-log/lists"}