Skip to content

Commit

Permalink
Fix k8s testbed
Browse files Browse the repository at this point in the history
  • Loading branch information
djaglowski committed Apr 7, 2021
1 parent 43a3283 commit 1a8a440
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions testbed/datasenders/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ func NewKubernetesContainerWriter() *FileLogK8sWriter {
id: get-format
routes:
- output: parser-docker
expr: '$$record matches "^\\{"'
expr: '$$body matches "^\\{"'
- output: parser-crio
expr: '$$record matches "^[^ Z]+ "'
expr: '$$body matches "^[^ Z]+ "'
- output: parser-containerd
expr: '$$record matches "^[^ Z]+Z"'
expr: '$$body matches "^[^ Z]+Z"'
# Parse CRI-O format
- type: regex_parser
id: parser-crio
Expand Down Expand Up @@ -211,9 +211,9 @@ func NewKubernetesContainerWriter() *FileLogK8sWriter {
k8s.pod.name: 'EXPR($.pod_name)'
run_id: 'EXPR($.run_id)'
k8s.pod.uid: 'EXPR($.uid)'
# Clean up log record
# Clean up log body
- type: restructure
id: clean-up-log-record
id: clean-up-log-body
ops:
- move:
from: log
Expand Down Expand Up @@ -253,9 +253,9 @@ func NewKubernetesCRIContainerdWriter() *FileLogK8sWriter {
k8s.pod.name: 'EXPR($.pod_name)'
run_id: 'EXPR($.run_id)'
k8s.pod.uid: 'EXPR($.uid)'
# Clean up log record
# Clean up log body
- type: restructure
id: clean-up-log-record
id: clean-up-log-body
ops:
- move:
from: log
Expand Down

0 comments on commit 1a8a440

Please sign in to comment.