Skip to content

Commit 175d63f

Browse files
authored
Fix example of container parser (#4950)
Signed-off-by: ChrsMark <[email protected]>
1 parent 13c2104 commit 175d63f

File tree

1 file changed

+9
-5
lines changed
  • content/en/blog/2024/otel-collector-container-log-parser

1 file changed

+9
-5
lines changed

content/en/blog/2024/otel-collector-container-log-parser/index.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,16 @@ will produce a log entry like the following:
137137
"attributes": {
138138
"time": "2024-03-30T08:31:20.545192187Z",
139139
"log.iostream": "stdout",
140-
"k8s.pod.name": "kube-controller-kind-control-plane",
141-
"k8s.pod.uid": "49cc7c1fd3702c40b2686ea7486091d6",
142-
"k8s.container.name": "kube-controller",
143-
"k8s.container.restart_count": "1",
144-
"k8s.namespace.name": "kube-system",
145140
"log.file.path": "/var/log/pods/kube-system_kube-controller-kind-control-plane_49cc7c1fd3702c40b2686ea7486091d6/kube-controller/1.log"
141+
},
142+
"resource": {
143+
"attributes": {
144+
"k8s.pod.name": "kube-controller-kind-control-plane",
145+
"k8s.pod.uid": "49cc7c1fd3702c40b2686ea7486091d6",
146+
"k8s.container.name": "kube-controller",
147+
"k8s.container.restart_count": "1",
148+
"k8s.namespace.name": "kube-system"
149+
}
146150
}
147151
}
148152
```

0 commit comments

Comments
 (0)