From 60865fde7b11cd9959287b1d3d4978eb01c11e76 Mon Sep 17 00:00:00 2001 From: ChrsMark Date: Mon, 5 Aug 2024 09:45:38 +0300 Subject: [PATCH] Fix example of container parser Signed-off-by: ChrsMark --- .../otel-collector-container-log-parser/index.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/content/en/blog/2024/otel-collector-container-log-parser/index.md b/content/en/blog/2024/otel-collector-container-log-parser/index.md index 305964d89d2e..3a58e843062c 100644 --- a/content/en/blog/2024/otel-collector-container-log-parser/index.md +++ b/content/en/blog/2024/otel-collector-container-log-parser/index.md @@ -137,12 +137,16 @@ will produce a log entry like the following: "attributes": { "time": "2024-03-30T08:31:20.545192187Z", "log.iostream": "stdout", - "k8s.pod.name": "kube-controller-kind-control-plane", - "k8s.pod.uid": "49cc7c1fd3702c40b2686ea7486091d6", - "k8s.container.name": "kube-controller", - "k8s.container.restart_count": "1", - "k8s.namespace.name": "kube-system", "log.file.path": "/var/log/pods/kube-system_kube-controller-kind-control-plane_49cc7c1fd3702c40b2686ea7486091d6/kube-controller/1.log" + }, + "resource": { + "attributes": { + "k8s.pod.name": "kube-controller-kind-control-plane", + "k8s.pod.uid": "49cc7c1fd3702c40b2686ea7486091d6", + "k8s.container.name": "kube-controller", + "k8s.container.restart_count": "1", + "k8s.namespace.name": "kube-system" + } } } ```