-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Labels
area/loggingsig/instrumentationCategorizes an issue or PR as relevant to SIG Instrumentation.Categorizes an issue or PR as relevant to SIG Instrumentation.
Description
1.6.6 shifted the fluentd-gcp image from 2.0.2 to 2.0.5. This seems to have broken the json detection from stdout. Using 2.0.2 the logs are parsed into jsonPayload, however for 2.0.5 they are passed into textPayload.
Reproduction steps:
- Create a GKE cluster with master version 1.6.4
- Deploy a dummy pod to echo some JSON to stdout:
apiVersion: v1
kind: Pod
metadata:
name: blabbermouth
spec:
containers:
- name: busybox
image: gcr.io/google-containers/busybox
command: ['sh', '-c', 'while :; do echo "{\"severity\": \"INFO\", \"message\": \"test\"}"; sleep 5; done']
- Lookup container logs in StackDriver: resource.type="container" and resource.labels.container_name="busybox"
- Observe that jsonPayload field of each logEntry is populated with the app's output JSON
- Upgrade the GKE master to 1.6.6.
- Observe that the log query in 4 now shows each logEntry with the output in a textPayload.
Metadata
Metadata
Assignees
Labels
area/loggingsig/instrumentationCategorizes an issue or PR as relevant to SIG Instrumentation.Categorizes an issue or PR as relevant to SIG Instrumentation.