https://github.com/erda-project/erda-fluent-bit
https://github.com/erda-project/erda-fluent-bit
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/erda-project/erda-fluent-bit
- Owner: erda-project
- License: apache-2.0
- Created: 2021-10-22T02:28:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-02T10:00:21.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T22:32:00.553Z (about 1 year ago)
- Language: C
- Size: 256 KB
- Stars: 0
- Watchers: 10
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [fluent-bit](https://fluentbit.io/) integrated in erda
## 字段名规定
- `__tags_*`:日志标签,最终通过`nest`生成tags
```json
{
"tags":{
"level": "INFO"
}
}
```
- `__labels_*`:日志导出配置的标签,最终通过`nest`生成labels,用以兼容日志分析&日志导出组件
```json
{
"labels":{
"monitor_log_output": "elasticsearch"
}
}
```
- `__pri_*`: 私有的中间Key,最终会被删除
## 日志模拟
### dd
### flog
1. 安装:`go install github.com/mingrammer/flog@latest`
2. 生成:
`flog -t log -o testdata/k8s/test.log -b 1073741824 -s 10ms -w`
生成1G大小日志`testdata/k8s/test.log`,