{"id":13460054,"url":"https://github.com/TencentBlueKing/bk-log","last_synced_at":"2025-03-24T18:33:03.257Z","repository":{"id":36956493,"uuid":"384076667","full_name":"TencentBlueKing/bk-log","owner":"TencentBlueKing","description":"蓝鲸日志平台是为了解决运维场景中查询日志难的问题而推出的一款SaaS，基于业界主流的全文检索引擎，通过蓝鲸智云的专属agent进行日志采集，无需登录各台机器，集中管理所有日志。","archived":false,"fork":false,"pushed_at":"2024-06-27T10:05:57.000Z","size":41776,"stargazers_count":120,"open_issues_count":22,"forks_count":56,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-24T07:55:33.518Z","etag":null,"topics":["elasticsearch","log","python"],"latest_commit_sha":null,"homepage":"https://bk.tencent.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TencentBlueKing.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG-developer.md","contributing":"CONTRIBUTING.md","funding":null,"license":"License.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support-files/iam/initial.json","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-08T09:47:49.000Z","updated_at":"2025-02-12T06:39:22.000Z","dependencies_parsed_at":"2024-10-29T06:30:47.004Z","dependency_job_id":"fc2db513-44b9-46bd-b136-3162630838d6","html_url":"https://github.com/TencentBlueKing/bk-log","commit_stats":null,"previous_names":[],"tags_count":312,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TencentBlueKing%2Fbk-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TencentBlueKing%2Fbk-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TencentBlueKing%2Fbk-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TencentBlueKing%2Fbk-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TencentBlueKing","download_url":"https://codeload.github.com/TencentBlueKing/bk-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245328480,"owners_count":20597431,"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":["elasticsearch","log","python"],"created_at":"2024-07-31T10:00:34.720Z","updated_at":"2025-03-24T18:33:01.069Z","avatar_url":"https://github.com/TencentBlueKing.png","language":"Python","funding_links":[],"categories":["语言资源库","Python"],"sub_categories":["python"],"readme":"![](docs/resource/img/logo.png)\n---\n[![license](https://img.shields.io/badge/license-mit-brightgreen.svg?style=flat)](https://github.com/TencentBlueKing/bk-log/blob/master/LICENSE.txt)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/TencentBlueKing/bk-log)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/TencentBlueKing/bk-log/pulls)\n[![codecov](https://codecov.io/gh/TencentBlueKing/bk-log/branch/master/graph/badge.svg?token=ATK33SUT2R)](https://codecov.io/gh/TencentBlueKing/bk-log)\n[![Web](https://github.com/TencentBlueKing/bk-log/actions/workflows/web.yml/badge.svg?event=schedule)](https://github.com/TencentBlueKing/bk-log/actions/workflows/web.yml)\n[![Test](https://github.com/TencentBlueKing/bk-log/actions/workflows/unittest.yml/badge.svg?event=schedule)](https://github.com/TencentBlueKing/bk-log/actions/workflows/unittest.yml)\n\n\n\n[English](README_EN.md) | 简体中文\n\n\u003e **重要提示**: `master` 分支在开发过程中可能处于 *不稳定或者不可用状态* 。\n请通过 [releases](https://github.com/TencentBlueKing/bk-log/releases) 而非 `master` 去获取稳定的二进制文件。\n\n蓝鲸日志平台(BK-LOG)是为解决分布式架构下日志收集、查询困难的一款日志产品，基于业界主流的全文检索引擎，通过蓝鲸智云的专属 Agent 进行日志采集，提供多种场景化的采集、查询功能。\n\n## Overview\n\n* [设计理念](docs/overview/design.md)\n* [架构设计](docs/overview/architecture.md)\n* [代码目录](docs/overview/code_framework.md)\n\n## Features\n\n- 简单易用的日志采集\n- 可视化的日志字段提取\n- 功能强大的日志查询\n- 实时日志和日志上下文\n- 日志关键字/汇聚告警\n- 支持第三方 ES 接入\n- 分布式跟踪支持\n- 仪表盘能力\n- 在线日志文件提取\n\n\n## Getting Started\n- 安装好`MySQL 5.7`、`Python3.6`，若同时开发多个项目，请创建Python虚拟环境\n- 创建数据库 `CREATE DATABASE bk_log DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;`\n- 在项目config新建`local_settings.py`文件，文件内容为数据库配置，如\n  \n  ```python\n     DATABASES = {\n        'default': {\n            'ENGINE': 'django.db.backends.mysql',\n            'NAME': 'bk_log',\n            'USER': 'root',\n            'PASSWORD': '',\n            'HOST': '127.0.0.1',\n            'PORT': '3306',\n        },\n    }\n  ```\n\n- 编译前端\n   \n  ```cmd\n  cd web\n  npm install\n  npm run build\n  ```\n  \n- 配置环境变量 \n  \n  ```bash\n  APP_ID=${APP_ID}\n  BK_IAM_V3_INNER_HOST=${BK_IAM_V3_INNER_HOST}\n  BK_PAAS_HOST=${BK_PAAS_HOST}\n  APP_TOKEN=${APP_TOKEN}\n  # BKAPP_REDIS_PASSWORD=${BKAPP_REDIS_PASSWORD}  # 缓存和Celery会使用到redis，如果本地redis有密码需要增加这个环境变量\n  ```\n\n- 启动工程 `python manage.py runserver 8000`\n- 启动celery `celery -A worker -l info -c 8`\n\n## Support\n\n- [产品文档](https://bk.tencent.com/docs/)\n- [蓝鲸论坛](https://bk.tencent.com/s-mart/community)\n\n## BlueKing Community\n\n- [BK-CMDB](https://github.com/Tencent/bk-cmdb)：蓝鲸配置平台（蓝鲸 CMDB）是一个面向资产及应用的企业级配置管理平台。\n- [BK-CI](https://github.com/Tencent/bk-ci)：蓝鲸持续集成平台是一个开源的持续集成和持续交付系统，可以轻松将你的研发流程呈现到你面前。\n- [BK-BCS](https://github.com/Tencent/bk-bcs)：蓝鲸容器管理平台是以容器技术为基础，为微服务业务提供编排管理的基础服务平台。\n- [BK-PaaS](https://github.com/Tencent/bk-PaaS)：蓝鲸 PaaS 平台是一个开放式的开发平台，让开发者可以方便快捷地创建、开发、部署和管理 SaaS 应用。\n- [BK-SOPS](https://github.com/Tencent/bk-sops)：标准运维（SOPS）是通过可视化的图形界面进行任务流程编排和执行的系统，是蓝鲸体系中一款轻量级的调度编排类 SaaS 产品。\n\n## Contributing\n\n如果你有好的意见或建议，欢迎给我们提 Issues 或 Pull Requests，为蓝鲸开源社区贡献力量。关于 bk-log 分支管理、Issue 以及 PR 规范，\n请阅读 [Contributing Guide](CONTRIBUTING.md)。\n\n[腾讯开源激励计划](https://opensource.tencent.com/contribution) 鼓励开发者的参与和贡献，期待你的加入。\n\n\n## License\n\n项目基于 MIT 协议， 详细请参考 [LICENSE](LICENSE.txt) 。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTencentBlueKing%2Fbk-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTencentBlueKing%2Fbk-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTencentBlueKing%2Fbk-log/lists"}