Skip to content

Commit 1a8a440

Browse files
committed
Fix k8s testbed
1 parent 43a3283 commit 1a8a440

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

testbed/datasenders/k8s.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ func NewKubernetesContainerWriter() *FileLogK8sWriter {
168168
id: get-format
169169
routes:
170170
- output: parser-docker
171-
expr: '$$record matches "^\\{"'
171+
expr: '$$body matches "^\\{"'
172172
- output: parser-crio
173-
expr: '$$record matches "^[^ Z]+ "'
173+
expr: '$$body matches "^[^ Z]+ "'
174174
- output: parser-containerd
175-
expr: '$$record matches "^[^ Z]+Z"'
175+
expr: '$$body matches "^[^ Z]+Z"'
176176
# Parse CRI-O format
177177
- type: regex_parser
178178
id: parser-crio
@@ -211,9 +211,9 @@ func NewKubernetesContainerWriter() *FileLogK8sWriter {
211211
k8s.pod.name: 'EXPR($.pod_name)'
212212
run_id: 'EXPR($.run_id)'
213213
k8s.pod.uid: 'EXPR($.uid)'
214-
# Clean up log record
214+
# Clean up log body
215215
- type: restructure
216-
id: clean-up-log-record
216+
id: clean-up-log-body
217217
ops:
218218
- move:
219219
from: log
@@ -253,9 +253,9 @@ func NewKubernetesCRIContainerdWriter() *FileLogK8sWriter {
253253
k8s.pod.name: 'EXPR($.pod_name)'
254254
run_id: 'EXPR($.run_id)'
255255
k8s.pod.uid: 'EXPR($.uid)'
256-
# Clean up log record
256+
# Clean up log body
257257
- type: restructure
258-
id: clean-up-log-record
258+
id: clean-up-log-body
259259
ops:
260260
- move:
261261
from: log

0 commit comments

Comments
 (0)