elastic / elastic/ecs-logging-java

Include Process ID

未关闭
#98 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
agent-java community
主要语言
Java
星标
148
派生
82
平均合并
2 天 17 小时
30 天内合并 PR
3

描述

This a the default format of log generated by spring boot app using logback

`2020-10-28 11:03:27.265 DEBUG 11672 --- [nio-8082-exec-1] c.b.estimator.domain.MarketEstimate : Value Estimation of Model : Toyota`

The ECS format generated in json is as follow

```
{
"@timestamp": "2020-10-28T11:03:27.265Z",
"log.level": "DEBUG",
"message": "Value Estimation of Model : Toyota",
"service.name": "car-value-estimator",
"event.dataset": "car-value-estimator.log",
"process.thread.name": "http-nio-8082-exec-2",
"log.logger": "com.bvader.estimator.domain.MarketEstimate",
"event.module": "car-value-estimator",
"event.category": "log",
"log.origin": {
"file.name": "MarketEstimate.java",
"function": "calculateEstimate",
"file.line": 29
}
}
```

As you can see the filed Process ID with value 11672 is missing

贡献指南

打开贡献指南

调研方向

首先跟踪 ECS JSON 输出如何映射 Spring Boot Logback 记录中的字段,然后将其与出现 process ID 11672 的默认日志行进行比较。当生成的 ECS JSON 将 process ID 包含为 process field 时即表示完成;issue 中未指定源文件或测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
observability-sre
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。